python - PyCharm - 如何暂停所有线程

标签 python multithreading debugging pycharm suspend

我们使用 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/

相关文章:

python - REGEX:选择两个斜杠之间的匹配项?

java - 是否鼓励在 Java 中使用多处理池?我有正在转换为 Java 的 Python 代码

c# - Wait Handles 是否释放线程获取的锁?

eclipse - 如何在 Eclipse 中使用断点

python - 对于两个 DataFrame 中的多列的自定义条件,比嵌套 for 循环更快的方法

python - 如何使用 Boto3 启动具有 IAM 角色的 EC2 实例?

python - 使用 nginx 运行 Pyinstaller Django 应用程序

java - 停止线程列表

java - 调试 Java 代理

c# - 显示调试器未显示在 Visual Studio 2017 中