Open 9p15p opened 1 year ago
What about setting --distributed_training 1
and using pdb.set_trace()
to debug?
I have tried, but it didn't work.
I add a lineimport pdb; pdb.set_trace()
after
https://github.com/Tsinghua-MARS-Lab/DenseTNT/blob/a0e3b8a51aecf9f9046db4fb72e2793684c96e69/src/run.py#L158
We updated the code just now so that you can set --distributed_training 0
to turn off multiprocessing.
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.