Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ debugging: Suspend whole VM then step on single thread

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

like image 404
Iain Avatar asked Apr 26 '12 05:04

Iain


2 Answers

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/

like image 161
Doron Gold Avatar answered Nov 01 '22 19:11

Doron Gold


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.

like image 37
Vasile Avatar answered Nov 01 '22 17:11

Vasile