IntelliJ线程调试 [英] IntelliJ Thread Debug

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

问题描述

IntelliJ IDEA是否提供线程调试?那就是 - Netbeans允许你调试多个线程,并在这些断点(自动)停止。然而,我似乎在IntelliJ中的所有内容都是线程转储,这似乎是一个手动分析,当我点击线程转储时拍摄的快照。



<有没有我失踪的东西?
我有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屋!

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