Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3692

"Java->Java Debugger: New breakpoints suspend: all threads" Doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 11.2
    • None
    • debugger - Java
    • 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?

      Attachments

        1. image-2020-01-13-17-01-16-941.png
          55 kB
          Jeff Vincent
        2. image-2020-01-13-17-05-39-566.png
          74 kB
          Jeff Vincent

        Activity

          People

            Unassigned Unassigned
            predatorvi Jeff Vincent
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: