Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to debug it #51

Open
9p15p opened this issue Aug 2, 2023 · 3 comments
Open

How to debug it #51

9p15p opened this issue Aug 2, 2023 · 3 comments

Comments

@9p15p
Copy link

9p15p commented Aug 2, 2023

The program is unable to pause at breakpoints. I tried some tools including pydevd and pudb, but they all failed. It seems to be caused by multiprocessing. How could I operate single step debugging.

@GentleSmile
Copy link
Member

What about setting --distributed_training 1 and using pdb.set_trace() to debug?

@9p15p
Copy link
Author

9p15p commented Aug 27, 2023

I have tried, but it didn't work.

I add a lineimport pdb; pdb.set_trace() after

for step, batch in enumerate(iter_bar):

@GentleSmile
Copy link
Member

We updated the code just now so that you can set --distributed_training 0 to turn off multiprocessing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants