|
@@ -302,6 +302,8 @@ export class GodotDebugSession extends LoggingDebugSession {
|
|
});
|
|
});
|
|
|
|
|
|
bps = this.debug_data.get_breakpoints(path);
|
|
bps = this.debug_data.get_breakpoints(path);
|
|
|
|
+ // Sort to ensure breakpoints aren't out-of-order, which would confuse VS Code.
|
|
|
|
+ bps.sort((a, b) => (a.line < b.line ? -1 : 1));
|
|
|
|
|
|
response.body = {
|
|
response.body = {
|
|
breakpoints: bps.map((bp) => {
|
|
breakpoints: bps.map((bp) => {
|