vega icon indicating copy to clipboard operation
vega copied to clipboard

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

Open xiaoxiongli opened this issue 3 years ago • 2 comments

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?

xiaoxiongli avatar Sep 02 '21 06:09 xiaoxiongli

@xiaoxiongli

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

import pdb

...
pdb.set_trace()   # Stop here waiting for debugging.
...

zhangjiajin avatar Sep 09 '21 01:09 zhangjiajin

pudb is a TUI debugger but feels like an IDE image

sisrfeng avatar Nov 09 '21 05:11 sisrfeng