Skip to content

Commit 3bdf4ff

Browse files
authored
Merge pull request #172 from HaronK/patch-1
Fix wrong path to the file with a breakpoint.
2 parents 606a25b + 806cd35 commit 3bdf4ff

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)