Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Attempt to fix the debugger jumping to gopark #2207

Merged
merged 2 commits into from
Dec 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1093,10 +1093,10 @@ class GoDebugSession extends DebugSession {
const state = this.delve.isApiV1 ? <DebuggerState>out : (<CommandOut>out).State;
verbose('continue state', state);
this.debugState = state;
this.sendResponse(response);
verbose('ContinueResponse');
this.handleReenterDebug('breakpoint');
});
this.sendResponse(response);
verbose('ContinueResponse');
}

protected nextRequest(response: DebugProtocol.NextResponse): void {
Expand All @@ -1108,10 +1108,10 @@ class GoDebugSession extends DebugSession {
const state = this.delve.isApiV1 ? <DebuggerState>out : (<CommandOut>out).State;
verbose('next state', state);
this.debugState = state;
this.sendResponse(response);
verbose('NextResponse');
this.handleReenterDebug('step');
});
this.sendResponse(response);
verbose('NextResponse');
}

protected stepInRequest(response: DebugProtocol.StepInResponse): void {
Expand All @@ -1123,10 +1123,10 @@ class GoDebugSession extends DebugSession {
const state = this.delve.isApiV1 ? <DebuggerState>out : (<CommandOut>out).State;
verbose('stop state', state);
this.debugState = state;
this.sendResponse(response);
verbose('StepInResponse');
this.handleReenterDebug('step');
});
this.sendResponse(response);
verbose('StepInResponse');
}

protected stepOutRequest(response: DebugProtocol.StepOutResponse): void {
Expand All @@ -1138,10 +1138,10 @@ class GoDebugSession extends DebugSession {
const state = this.delve.isApiV1 ? <DebuggerState>out : (<CommandOut>out).State;
verbose('stepout state', state);
this.debugState = state;
this.sendResponse(response);
verbose('StepOutResponse');
this.handleReenterDebug('step');
});
this.sendResponse(response);
verbose('StepOutResponse');
}

protected pauseRequest(response: DebugProtocol.PauseResponse): void {
Expand Down