I have a Java application with a lot of threads. While debugging, and when execution in one thread was stopped by a break point, it's pretty annoying to scroll between all the threads to find the suspended thread. Is there a way (a button, shortcut key, whatever) to jump to the suspended thread, or better - to hide all not suspended threads?
When you have started your application in debug mode. You can see the threads in the Debug view which is in the Debug perspective by default. For detailed information you have to use VisualVM.
Variables. We can see the values of variables during the execution under the Variables view. In order to see the static variables, we can select the drop-down option Java -> Show Static Variables. Using the variables view, it's possible to change any value to the desired value during the execution.
Start debug session. When the breakpoint in run is hit, you can go to another breakpoint, enable that breakpoint if it was disabled. Then right click on the breakpoint -> go to Filters, now you can select the thread you want the breakpoint to be remain enabled for and you can uncheck the rest of the threads.
A breakpoint is a signal that tells the debugger to temporarily suspend execution of your program at a certain point in the code. To define a breakpoint in your source code, right-click in the left margin in the Java editor and select Toggle Breakpoint. Alternatively, you can double-click on this position.
I agree it is very annoying, and the answer very disappointing. But I think I found kind of a way:
Ctrl-F
to open the Find window for that viewNot ideal, but does the job for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With