mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
Fix breakpoint failures on windows
Make sure relative_fpn uses forward slashes as path delimiters
This commit is contained in:
@@ -639,7 +639,7 @@ class AndroidDebugSession extends DebugSession {
|
|||||||
|
|
||||||
// our debugger requires a relative fpn beginning with / , rooted at the java source base folder
|
// our debugger requires a relative fpn beginning with / , rooted at the java source base folder
|
||||||
// - it should look like: /some/package/name/abc.java
|
// - 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
|
// delete any existing breakpoints not in the list
|
||||||
var src_line_nums = args.breakpoints.map(bp => bp.line);
|
var src_line_nums = args.breakpoints.map(bp => bp.line);
|
||||||
|
|||||||
Reference in New Issue
Block a user