11

Can I pause a thread while debugging on intellij? What I want to have is something similiar to other ID - right click on a thread and pause it.

Ashutosh Jindal
  • 18,501
  • 4
  • 62
  • 91
Bick
  • 17,833
  • 52
  • 146
  • 251

1 Answers1

16

You either use a standard breakpoint which will pause all threads when hit or you can use a breakpoint with the suspend policy = thread.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • 4
    This isn't useful if you don't know where in the code a thread is executing, and impossible if the thread is in the blocked state (waiting for notify/synchronized/lock) – Mark Jeronimus May 06 '16 at 13:07