Skip to content

Commit

Permalink
VSCode confused of JLink running state - a workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Sep 21, 2021
1 parent 4375d89 commit d578d4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,13 @@ export class GDBDebugSession extends DebugSession {

if ((mode !== SessionMode.ATTACH) && this.args.noDebug) {
if (!commands) { commands = []; }
this.continuing = true;
// Since this is part of startup/reset/restart, don't set this flag. Interfers if we continue afger reset (Jlink)
// this.continuing = true;
commands.push('-exec-continue');
} else if (!this.args.breakAfterReset && (mode !== SessionMode.ATTACH) && (!commands || (commands.length === 0))) {
// This function is not called if 'runToEntryPoint' was used
this.continuing = true;
// Since this is part of startup/reset/restart, don't set this flag. Interfers if we continue afger reset (Jlink)
// this.continuing = true;
commands = ['-exec-continue'];
}

Expand Down

0 comments on commit d578d4b

Please sign in to comment.