diff --git a/package.json b/package.json index 0136d53e9..0d24f98a1 100644 --- a/package.json +++ b/package.json @@ -593,11 +593,6 @@ "description": "Indicates local or remote debugging. Local maps to the dlv 'attach' command, remote maps to 'connect'.", "default": "local" }, - "stopOnEntry": { - "type": "boolean", - "description": "Automatically stop program after launch.", - "default": false - }, "showLog": { "type": "boolean", "description": "Show log output from the delve debugger.", diff --git a/src/debugAdapter/goDebug.ts b/src/debugAdapter/goDebug.ts index a938e2f34..6c89fc033 100644 --- a/src/debugAdapter/goDebug.ts +++ b/src/debugAdapter/goDebug.ts @@ -828,9 +828,8 @@ class GoDebugSession extends LoggingDebugSession { protected async configurationDoneRequest(response: DebugProtocol.ConfigurationDoneResponse, args: DebugProtocol.ConfigurationDoneArguments): Promise { log('ConfigurationDoneRequest'); - if (this.stopOnEntry) { - this.sendEvent(new StoppedEvent('breakpoint', 0)); + this.sendEvent(new StoppedEvent('breakpoint', 1)); log('StoppedEvent("breakpoint")'); this.sendResponse(response); } else { @@ -1029,6 +1028,9 @@ class GoDebugSession extends LoggingDebugSession { goroutine.userCurrentLoc.function ? goroutine.userCurrentLoc.function.name : (goroutine.userCurrentLoc.file + '@' + goroutine.userCurrentLoc.line) ) ); + if (threads.length === 0) { + threads.push(new Thread(1, 'Dummy')); + } response.body = { threads }; this.sendResponse(response); log('ThreadsResponse', threads);