From 806cd357feaf9f2da67bb9b7b3ece5c7bdb24f75 Mon Sep 17 00:00:00 2001 From: Oleg Khryptul <638536+HaronK@users.noreply.github.com> Date: Tue, 19 Mar 2019 18:02:15 +0100 Subject: [PATCH] Fix wrong path to the file with a breakpoint. Fix for issue #171 . --- src/mibase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mibase.ts b/src/mibase.ts index c0da00ed..ffcc8a50 100644 --- a/src/mibase.ts +++ b/src/mibase.ts @@ -225,7 +225,7 @@ export class MI2DebugSession extends DebugSession { let path = args.source.path; if (this.isSSH) { path = relative(this.trimCWD.replace(/\\/g, "/"), path.replace(/\\/g, "/")); - path = resolve(this.switchCWD.replace(/\\/g, "/"), path.replace(/\\/g, "/")); + path = systemPath.resolve(this.switchCWD.replace(/\\/g, "/"), path.replace(/\\/g, "/")); } const all = args.breakpoints.map(brk => { return this.miDebugger.addBreakPoint({ file: path, line: brk.line, condition: brk.condition, countCondition: brk.hitCondition });