Closed jubax closed 5 months ago
The classes where the debugger jumped to the wrong line contained such text blocks with backslashes at the end of the lines. After I removed those backslashes the debugger worked fine again.
I have tracked the problem with setting the breakpoint to the line end table which isn't properly set up when the continuation characters are used (missing the line end registration so line numbers are incorrectly calculated for validating the breakpoint). That said, there is still some other work to do as after fixing that, the breakpoint line shows it is stopped, but it actually executes some additional lines (probably a similar line end issue elsewhere).
Found the problem. I needed to run the exportplugin.xml file to regenerate some jar files. It works now. I will post the jdt.core patch today.
Fixed by: https://github.com/eclipse-jdt/eclipse.jdt.core/pull/2339
Verified with I20240414 I-build.
The debugger gets confused when you have text blocks with backslash characters.
I noticed that (maybe since 2024-03, but I'm not sure) the debugger sometimes seems to be in the wrong line. While trying to get a reproducible test I noticed that once you have a text block with a backslash character you cannot add a breakpoint afterwards.
But it works this way:
I'm not sure this is the same as my original problem, but this is certainly a bug. Not sure if this is related to the debugger, the UI or the compiler.