Skip to content

Commit 806cd35

Browse files
authored
Fix wrong path to the file with a breakpoint.
Fix for issue #171 .
1 parent 606a25b commit 806cd35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mibase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class MI2DebugSession extends DebugSession {
225225
let path = args.source.path;
226226
if (this.isSSH) {
227227
path = relative(this.trimCWD.replace(/\\/g, "/"), path.replace(/\\/g, "/"));
228-
path = resolve(this.switchCWD.replace(/\\/g, "/"), path.replace(/\\/g, "/"));
228+
path = systemPath.resolve(this.switchCWD.replace(/\\/g, "/"), path.replace(/\\/g, "/"));
229229
}
230230
const all = args.breakpoints.map(brk => {
231231
return this.miDebugger.addBreakPoint({ file: path, line: brk.line, condition: brk.condition, countCondition: brk.hitCondition });

0 commit comments

Comments
 (0)