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

Commit

Permalink
Implement Step Out
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jan 4, 2017
1 parent 2328f31 commit 6d0f440
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,17 @@ class GoDebugSession extends DebugSession {
}

protected stepOutRequest(response: DebugProtocol.StepOutResponse): void {
logError('Not yet implemented: stepOutRequest');
this.sendErrorResponse(response, 2000, 'Step out is not yet supported');
log('StepOutRequest');
this.delve.call<DebuggerState>('Command', [{ name: 'stepOut' }], (err, state) => {
if (err) {
logError('Failed to stepout.');
}
log(state);
this.debugState = state;
this.handleReenterDebug('step');
});
this.sendResponse(response);
log('StepOutResponse');
}

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

0 comments on commit 6d0f440

Please sign in to comment.