Fix conditional breakpoints being parsed as regular breakpoints (#278)

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
Francois Belair
2021-11-03 10:15:42 -04:00
committed by GitHub
parent ce30e6ed95
commit 363160ee3b

View File

@@ -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);
}
}
});