我们使用 PyCharm 5.0.1 进行多线程调试。
当它在断点处停止时,只有特定线程停止,而所有其他线程继续运行。这使得“卡住时刻”和检查参数值以及其他线程的当前状态变得困难。
当其中一个线程在断点处停止时,是否可以挂起所有线程?
这在最新的 Pycharm 2016 或 [最新] Pycharm 版本上可行吗?
最佳答案
根据 this thread在 PyCharm 2016.2 之后这是可能的:
Elizaveta Shashkova 2016 年 7 月 27 日:
The new feature has appeared in PyCharm 2016.2: breakpoint thread suspend policy. You can go to Run | View breakpoints, select the breakpoint and change its threads suspend policy: "Thread" or "All". Also you can set the default policy for all your breakpoints.
关于python - PyCharm - 如何暂停所有线程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35772638/