IntelliJ调试:暂停整个虚拟机,然后单步执行 [英] IntelliJ debugging: Suspend whole VM then step on single thread

查看:423
本文介绍了IntelliJ调试:暂停整个虚拟机,然后单步执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试具有很多线程的应用程序。我的断点被设置为暂停整个虚拟机。



当一个线程碰到一个断点时,我想使用Step Over。但是,这似乎恢复了整个虚拟机,直到完成这个步骤。



如果我只能单击打破断点的单个线程,那真的很有帮助。 >

在IntelliJ 11.1 / Java 6中有什么办法吗? (希望我没有缺少一些明显的东西...)

解决方案

目前没有这样的可能性,因为它可能会导致死锁。您可以投票支持 IDEA-43728


I am debugging an application with lots of threads. My breakpoints are set to suspend the whole VM.

When a thread hits one of the breakpoints, I then want to use Step Over. But this appears to resume the whole VM, until that step completes.

It'd really help if I could step just the single thread that hit the breakpoint.

Is there any way to do this in IntelliJ 11.1 / Java 6? (Hope I'm not missing something obvious...)

解决方案

Currently there's no such possibility because it may lead to deadlocks. You may vote for IDEA-43728 though.

这篇关于IntelliJ调试:暂停整个虚拟机,然后单步执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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