From d3ff22395e6054edc9c18735a34cd23c46ecd46a Mon Sep 17 00:00:00 2001 From: adelphes Date: Wed, 1 Feb 2017 18:41:25 +0000 Subject: [PATCH] Fix breakpoint failures on windows Make sure relative_fpn uses forward slashes as path delimiters --- src/debugMain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debugMain.js b/src/debugMain.js index ba64a3d..95d4000 100644 --- a/src/debugMain.js +++ b/src/debugMain.js @@ -639,7 +639,7 @@ class AndroidDebugSession extends DebugSession { // our debugger requires a relative fpn beginning with / , rooted at the java source base folder // - it should look like: /some/package/name/abc.java - var relative_fpn = srcfpn.slice(pkginfo.srcroot.match(/^(.*?)[\\/]?$/)[1].length); + var relative_fpn = srcfpn.slice(pkginfo.srcroot.match(/^(.*?)[\\/]?$/)[1].length).replace(/\\/g,'/'); // delete any existing breakpoints not in the list var src_line_nums = args.breakpoints.map(bp => bp.line);