vega
vega copied to clipboard
how to debug the worker thread since it is run by the distribution?
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:
So could you tell me how to debug the worker thread?
@xiaoxiongli
Using pdb for debugging. Import pdb where debugging is required.
import pdb
...
pdb.set_trace() # Stop here waiting for debugging.
...
pudb is a TUI debugger but feels like an IDE