Skip to content

Commit

Permalink
Fix conditional breakpoints being parsed as regular breakpoints (#278)
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
  • Loading branch information
Razoric480 and Calinou authored Nov 3, 2021
1 parent ce30e6e commit 363160e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/debugger/debug_session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ export class GodotDebugSession extends LoggingDebugSession {
});
client_lines.forEach((l) => {
if (bp_lines.indexOf(l) === -1) {
this.debug_data.set_breakpoint(path, l);
let bp = args.breakpoints.find((bp_at_line) => (bp_at_line.line == l));
if (!bp.condition) {
this.debug_data.set_breakpoint(path, l);
}
}
});

Expand Down

0 comments on commit 363160e

Please sign in to comment.