vscode-java-debug
vscode-java-debug copied to clipboard
Breakpoint line misalignment in `Virtual threads` of `JDK19`
Performing tasks using JDK19's virtual thread in tomcat, when I debug in task code. Breakpoint validation is fine, but the code that is executed when the breakpoint is actually commanded is not the code on the source line where the breakpoint is located. Their error is about 4 lines off.
Environment
- Operating System:window10
- JDK version:19
- Visual Studio Code version:1.72
- Java extension version:v1.11.0
- Java Debugger extension version:v0.45.0
Steps To Reproduce
- install JDK19 and set default JDK
- Write an Action in tomcat, then start a virtual thread to execute a new task, debugging the code in the task.
Current Result
Debug breakpoints execute lines of code and source code that are not mapped correctly. The difference is about 4 rows
Expected Result
The debug breakpoint executes the same code as the source line of code
Additional Informations
The debugging of all classes has the problem of inconsistent code and source code executed by breakpoints
The debugger itself won't change the line number info during debugging, it just reflects what's returned from the target JVM. The possible reason is that the source code version is not the one running in your tomcat server. Could you please double check it by yourself?
The debugger itself won't change the line number info during debugging, it just reflects what's returned from the target JVM. The possible reason is that the source code version is not the one running in your tomcat server. Could you please double check it by yourself?
Thanks, I'll double-check