<div dir="ltr">Investigating an issue in both IntelliJ and Eclipse debuggers led to this bug: I can't break inside an anonymous class method of the form<div><br></div><div>```</div><div>new Object() {</div><div>  void test() {</div><div>    System.out.println("breakpoint here does not work");</div><div>  }</div><div>}.test();</div><div>```</div><div><br></div><div>due to a buggy interaction between JDWP and virtual threads. The console statement in the example above does indeed print, i.e. it is executed.</div><div><br></div><div>What would the next steps be to help with investigating and resolving this issue?</div><div><br></div><div><a href="https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=%0A%0AIU-231.9161.38,%20JRE%2017.0.7%2B10-b829.16x64%20JetBrains%20s.r.o">https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=%0A%0AIU-231.9161.38,%20JRE%2017.0.7%2B10-b829.16x64%20JetBrains%20s.r.o</a>.,%20OS%20Mac%20OS%20X(aarch64)%20v13.4,%20screens%203456.0x2234.0;%20Retina<br></div></div>