Răsfoiți Sursa

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

Co-authored-by: Hugo Locurcio <[email protected]>
Francois Belair 3 ani în urmă
părinte
comite
363160ee3b
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      src/debugger/debug_session.ts

+ 4 - 1
src/debugger/debug_session.ts

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