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

Commit

Permalink
Attempt to fix the debugger jumping to gopark (#2207)
Browse files Browse the repository at this point in the history
* Attempt to fix the debugger jumping to gopark

Might fix #2133

* Review fix
  • Loading branch information
segevfiner authored and ramya-rao-a committed Dec 31, 2018
1 parent 3d0f06e commit 456fdab
Showing 1 changed file with 8 additions and 8 deletions.
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

0 comments on commit 456fdab

Please sign in to comment.