Uh oh!
There was an error while loading. Please reload this page.
Add suspend mode for source breakpoints - #610
Conversation
Changyong Gong (chagong)
commented
Nov 3, 2025
Thomas Mäder (@tsmaeder) I wrote a simple program to test it, but got error: publicclassHelloWorld {
publicstaticvoidmain(String[] args) {
System.out.println("Starting application...");
Stringmessage = "Hello, World!";
System.out.println(message); // Set a breakpoint herefor (inti = 0; i < 3; i++) {
System.out.println("Count: " + i);
}
System.out.println("Application finished.");
}
}Error: Also please fix CI errors. |
Thomas Mäder (tsmaeder)
commented
Nov 3, 2025
Changyong Gong (@chagong) how are you testing? I have a very similar program which works fine for me. Also, this PR does not contain changes that could cause a problem with the delegate command handler, IMO. Here's what I do:
|
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
d6f08d7 to
b3e14c0CompareChangyong Gong (chagong)
commented
Nov 4, 2025
Thomas Mäder (@tsmaeder) probably the problem of my setup, it works after I relaunch vscode and F5. The PR is good to go after your fix the format errors. |
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Changyong Gong (@chagong) running checkstyle:check locally spews out messages about |
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Thomas Mäder (tsmaeder)
commented
Feb 4, 2026
Changyong Gong (@chagong) is there anything (beyond a rebase) that I could do to move this forward? |
Changyong Gong (chagong)
commented
Feb 4, 2026
Hi Thomas Mäder (@tsmaeder), can you check if the fix to microsoft/vscode-java-debug#722 has already supported the suspend policy setting? |
Thomas Mäder (tsmaeder)
commented
Feb 4, 2026
Changyong Gong (@chagong) no, this PR allows to set the suspend mode per breakpoint, the other PR just introduces a global flag. |
Changyong Gong (chagong)
commented
Feb 5, 2026
Thomas Mäder (@tsmaeder) we make it a global flag because vscode doesn't have UI option to set breakpoint property. Are you doing this for cursor? |
Thomas Mäder (tsmaeder)
commented
Jul 20, 2026
Chagon VS Code does have UI for this, but you have to enable the modes in the debug adapter (what this PR does) in order to see it. See description. |

Fixes#608
Note that this PR contains code for handling source breakpoints and exception breakpoints. But in fact, VS Code Java only properly handles source and instruction breakpoints. I've left the code in there, since it's not completely trivial and it should not affect the behavior if no suspend mode is sent when setting the exception breakpoints.
How to Test