IntelliJ debugging: pause the entire virtual machine and then step by step

I am debugging an application with a lot of threads. My breakpoints are set to pause the entire virtual machine.

When a thread hits one of the breakpoints, then I want to use Step Over. But this seems to resume the entire VM until this step is complete.

It would really help if I could only execute one thread that hit the breakpoint.

Is there a way to do this in IntelliJ 11.1 / Java 6? (I hope I don’t miss something obvious ...)

+6
source share
3 answers

This feature was added in IntelliJ 16 (the issue CrazyCoder referred to in his answer)

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/

+3
source

NetBeans can resume individual streams. In debug mode, you can resume a thread from the list of left-hand threads by clicking the small button in the Play (β–Ί) view next to the thread.

+5
source

There is currently no such possibility, as this may lead to deadlocks. You can vote for IDEA-43728 though.

+3
source

Source: https://habr.com/ru/post/914191/


All Articles