diff --git a/src/gdb.ts b/src/gdb.ts index d92a22fc..bbce760b 100644 --- a/src/gdb.ts +++ b/src/gdb.ts @@ -243,6 +243,9 @@ export class GDBDebugSession extends DebugSession { } this.serverController.debuggerLaunchStarted(); + this.miDebugger.once('debug-ready', () => { + this.debugReady = true; + }); this.miDebugger.connect(this.args.cwd, this.args.executable, commands).then(() => { this.started = true; this.serverController.debuggerLaunchCompleted();