huawei-noah / vega

AutoML tools chain
http://www.noahlab.com.hk/opensource/vega/
Other
842 stars 175 forks source link

how to debug the worker thread since it is run by the distribution? #138

Open xiaoxiongli opened 3 years ago

xiaoxiongli commented 3 years ago

I use pycharm to debug vega code, but I find that I only can debug the main thread, and I can not debug the worker thread, such as below code:

image

So could you tell me how to debug the worker thread?

zhangjiajin commented 3 years ago

@xiaoxiongli

Using pdb for debugging. Import pdb where debugging is required.

import pdb

...
pdb.set_trace()   # Stop here waiting for debugging.
...
sisrfeng commented 2 years ago

pudb is a TUI debugger but feels like an IDE image