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 1 commit
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
8 changes: 4 additions & 4 deletions src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,9 @@ class GoDebugSession extends DebugSession {
const state = this.delve.isApiV1 ? <DebuggerState>out : (<CommandOut>out).State;
verbose('continue state', state);
this.debugState = state;
this.sendResponse(response);
this.handleReenterDebug('breakpoint');
});
this.sendResponse(response);
verbose('ContinueResponse');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The verbose call for logging should move as well

}

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

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

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

Expand Down