Skip to content

Commit bfdc6e9

Browse files
Antoine BussyWebFreak001
authored andcommitted
Fix setBreakPointsRequest that don't always clear breakpoints
1 parent 0d8e0e0 commit bfdc6e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/mibase.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ export class MI2DebugSession extends DebugSession {
228228
}
229229

230230
protected setBreakPointsRequest(response: DebugProtocol.SetBreakpointsResponse, args: DebugProtocol.SetBreakpointsArguments): void {
231-
this.miDebugger.clearBreakPoints(args.source.path).then(() => {
232-
let path = args.source.path;
233-
if (this.isSSH) {
234-
// convert local path to ssh path
235-
path = this.sourceFileMap.toRemotePath(path);
236-
}
231+
let path = args.source.path;
232+
if (this.isSSH) {
233+
// convert local path to ssh path
234+
path = this.sourceFileMap.toRemotePath(path);
235+
}
236+
this.miDebugger.clearBreakPoints(path).then(() => {
237237
const all = args.breakpoints.map(brk => {
238238
return this.miDebugger.addBreakPoint({ file: path, line: brk.line, condition: brk.condition, countCondition: brk.hitCondition });
239239
});

0 commit comments

Comments
 (0)