PyCharm-如何暂停所有线程 [英] PyCharm - how to suspend all threads

查看:106
本文介绍了PyCharm-如何暂停所有线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用PyCharm 5.0.1进行多线程调试.
当它在断点处停止时,仅特定线程停止,而其他所有线程继续.这使得冻结时刻"和检查参数值以及其他线程的当前状态变得很困难.

当其中一个线程在断点处停止时,是否可以挂起所有线程?

We're using PyCharm 5.0.1 for multi-thread debugging.
When it stops at a break point, only the specific thread stops while all the other continue. This makes it hard to "freeze the moment" and check params values, and the current state of the other threads.

Is it possible to suspend all the thread while one of them has stopped on a breakpoint?

在最新的Pycharm 2016或[最新] Pycharm版本上有可能吗?

Is this possible on the newest Pycharm 2016 or the [latest] Pycharm version?

推荐答案

根据此线程在PyCharm 2016.2之后可以这样做:

According to this thread this is possible after PyCharm 2016.2:

Elizaveta Shashkova 2016年7月27日:

Elizaveta Shashkova 27 Jul 2016:

新功能已出现在PyCharm 2016.2中:断点线程暂停政策.您可以转到运行|查看断点,选择断点并更改其线程挂起策略:线程"或全部".您还可以为所有断点设置默认策略.

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.

这篇关于PyCharm-如何暂停所有线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆