Skip to content

Commit

Permalink
fix: Fix breakpoint setting for newest bashdb
Browse files Browse the repository at this point in the history
* Fixed missed launch on some environments (#73).

* Restored the commented bashdb '--quiet' option.
  • Loading branch information
antonio-petricca authored and rogalmic committed Jul 19, 2018
1 parent c713d29 commit 5390d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bashDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class BashDebugSession extends LoggingDebugSession {

const sourcePath = (process.platform === "win32") ? getWSLPath(args.source.path) : args.source.path;

let setBreakpointsCommand = `print 'delete <${this.currentBreakpointIds[args.source.path].join(" ")}>'\ndelete ${this.currentBreakpointIds[args.source.path].join(" ")}\nload ${sourcePath}\n`;
let setBreakpointsCommand = `print 'delete <${this.currentBreakpointIds[args.source.path].join(" ")}>'\ndelete ${this.currentBreakpointIds[args.source.path].join(" ")}\nyes\nload ${sourcePath}\n`;
if (args.breakpoints) {
args.breakpoints.forEach((b) => { setBreakpointsCommand += `print ' <${sourcePath}:${b.line}> '\nbreak ${sourcePath}:${b.line}\n` });
}
Expand Down

0 comments on commit 5390d7f

Please sign in to comment.