lahodaj opened a new pull request, #8232:
URL: https://github.com/apache/netbeans/pull/8232

   Using the VS Code extension and running this code under debugger:
   ```
   package test.threading;
   
   public class ThreadingTest {
   
       public static void main(String[] args) {
           Thread.ofPlatform().start(() -> {
               System.err.println(); //breakpoint here
           });
       }
   }
   ```
   (having the line breakpoint on the marked line). The debugger does not 
properly stop at the breakpoint.
   
   What I **think** is happening is that when the `JPDAThreadImpl` is created, 
it is already suspended inside the debuggee. As a consequence, the event that 
the thread was suspended does not go through, and the "UI" part of the debugger 
is not notified the thread was suspended.
   
   The proposal here is to send the "thread suspended" event the first time the 
thread stops on a breakpoint, if it was created as already-suspended.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to