Search code examples
javamultithreadingnetbeansconcurrencybreakpoints

Does a breakpoint halt all threads?


If I have two threads running concurrently in my program and put a breakpoint on one of them, will the other thread stop also halt when this breakpoint is hit, or will it continue executing regardless?

(I am writing in Java and using NetBeans)


Solution

  • Breakpoints have an option how they should behave: to suspend a single thread or all threads

    breakpoints