Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
11.2
-
None
-
Product Version: Apache NetBeans IDE 11.2
Java: 1.8.0_221; Java HotSpot(TM) 64-Bit Server VM 25.221-b11
Runtime: Java(TM) SE Runtime Environment 1.8.0_221-b11
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
Description
In trying to set conditional breakpoints to debug specific issues with TestNG test cases, I am seeing odd results where Netbeans displays odd values for variables. Thinking this was an issue with concurrency in my multi-threaded TestNG test class, I hoped to stop all running threads once a breakpoint is hit so I changed the option to suspend all threads when a new break point is hit:
However, when a break point is hit, all the threads in the pool remain running until they too hit a break point. The interesting thing to note is that the condition specified should only be hit TWICE in the entire test run, yet multiple threads seem to hit the break point (I am going to enter this as separate issue):
I may be missing something, but my expectation is that all threads should pause once the first break point is hit. Is this the expected behavior?