8

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...)

3 Answers 3

7

This feature was added in IntelliJ 16 (the issue CrazyCoder referenced in his answer was resolved)

enter image description here

More details here:
https://blog.jetbrains.com/idea/2016/02/intellij-idea-16-eap-improves-debugger-and-adds-git-worktree-support/

Sign up to request clarification or add additional context in comments.

1 Comment

I have this check marked but when I resume, it still takes me to breakpoints in other threads that would also break there when I resume the thread I'm looking at. I'm ok with the deadlock risk since I'm already peering into the JVM. Any further tips? Thanks in advance!
5

NetBeans can resume individual threads. While in debug mode, you can resume a thread from the left thread list by pressing a small button shaped like Play (►) near the thread.

Comments

3

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

1 Comment

IDEA-43728 was resolved in IntelliJ 16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.