There's more...

There are options to control the debugger. Select Options from the Tools menu. Then, select the Miscellaneous option and the Java Debugger tab. The following screenshot illustrates this window:

There are two options in the window that control the behavior described earlier:

  • New breakpoints suspend: With this option, you can configure the behavior of NetBeans, which finds a breakpoint in a thread. You can suspend only that thread that has a breakpoint or all the threads of the application.
  • Steps resume: With this option, you can configure the behavior of NetBeans when you resume a thread. You can resume only the current thread ...

Get Java 9 Concurrency Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.