From 75cf2a87a1ecda90bdcd473345afb62060c20686 Mon Sep 17 00:00:00 2001 From: Shawn Xiao Date: Thu, 14 Jun 2018 19:36:51 +0800 Subject: [PATCH] Fixed bug #62. --- src/gdb.ts | 3 +++ 1 file changed, 3 insertions(+) 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();