Avoid switching to non-breakpoint context when breakpoint hit when debugging multithread python

已回答

I have a multi-threaded application in pycharm. When my main thread hits a breakpoint, PyCharm are freezes all the active threads in my application. Worse, it jump the editor to when the threads are frozen, even though no breakpoint was set  -- which is very annoying (it would be better if the editor context switched to the breakpoint, as it does in single-threaded apps. Using 2016.2.4

Is there a way to fix this?

0

Hi Stuart! I believe one can set the breakpoint to suspend the thread only:

0
Avatar
Permanently deleted user

Thanks for the reply. To be clear, the problem is not whether or not the whole program or an individual thread is stopped. The problem is that, in a program with 50 threads, the editor switches to many irrelevant file where there is not breakpoint -- I takes me a long time to find actual line of code where I set a break.

0

请先登录再写评论。