IntelliJ线程调试 [英] IntelliJ Thread Debug
问题描述
<有没有我失踪的东西?
我有google'd,没有找到足够的信息来协助。
我想你可以。通过设置挂起政策,我已经通过断点暂停线程。这将暂停正在执行这段代码的线程。如果你有多个线程,那么我会认为他们会继续。
引用暂停政策
- 项目描述
- 全部:当断点被击中时,所有线程都被挂起
- 线程:当断点被击中时,断点被击中的线程被暂停。
- 无:暂停线程。
Does IntelliJ IDEA provide thread-debugging? That is - Netbeans allows you to debug multiple threads, and halting at those breakpoints (automatically). However all I seem to be getting in IntelliJ is "thread dumping", which seems to be an analysis that is manual, and a snapshot taken when I clicked 'Thread Dump'.
Is there something I'm missing? I have google'd and not found sufficient information to assist.
I think you can. I have suspended threads via breakpoints by setting the suspend policy. This will suspend the thread that is executing this piece of code. If you have multiple thread then I would think they would carry on.
To quote the suspend policy
- Item Description
- All : When the breakpoint is hit, all threads are suspended
- Thread : When the breakpoint is hit, the thread where the breakpoint is hit is suspended.
- None: No thread is suspended.
这篇关于IntelliJ线程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!