gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 21:06:55 28 4
gpt4 key购买 nike

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

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com