From 4226264c13b8ad79359bb1e9e361757c169cde22 Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Thu, 17 Jan 2019 22:44:35 -0800 Subject: [PATCH] Log error when continue fails in the normal case --- src/debugAdapter/goDebug.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/debugAdapter/goDebug.ts b/src/debugAdapter/goDebug.ts index 05b9a7fae..d139df5a2 100644 --- a/src/debugAdapter/goDebug.ts +++ b/src/debugAdapter/goDebug.ts @@ -1125,7 +1125,12 @@ class GoDebugSession extends LoggingDebugSession { }; // If called when setting breakpoint internally, we want the error to bubble up. - const errorCallback = calledWhenSettingBreakpoint ? null : callback; + const errorCallback = calledWhenSettingBreakpoint ? null : (err) => { + if (err) { + logError('Failed to continue - ' + err.toString()); + } + this.handleReenterDebug('breakpoint'); + }; return this.delve.callPromise('Command', [{ name: 'continue' }]).then(callback, errorCallback); }