Skip to content

Commit

Permalink
Add stepBackRequest handling. Also change vscode-debugadapter/protoco…
Browse files Browse the repository at this point in the history
…l dependencies to local paths since this depends on changes in those modules that aren't published. This will require the roblourens/vscode-debugadapter-node repo to be cloned next to this one.
  • Loading branch information
roblourens committed Mar 5, 2016
1 parent 568060b commit fdc0ea2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"vscode": "^0.10.1"
},
"dependencies": {
"vscode-debugprotocol": "1.6.0-pre8",
"vscode-debugadapter": "1.6.0-pre12",
"vscode-debugprotocol": "file:../vscode-debugadapter-node/protocol",
"vscode-debugadapter": "file:../vscode-debugadapter-node/adapter",
"source-map": "^0.5.3",
"vscode-nls": "^1.0.4"
},
Expand Down
6 changes: 6 additions & 0 deletions src/node/nodeDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,12 @@ export class NodeDebugSession extends DebugSession {
this._sendNodeResponse(response, nodeResponse);
});
}

protected stepBackRequest(response: DebugProtocol.StepBackResponse, args: DebugProtocol.StepBackArguments) : void {
this._node.command('continue', { stepaction: 'back' }, (nodeResponse) => {
this._sendNodeResponse(response, nodeResponse);
});
}

protected nextRequest(response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments): void {
this._node.command('continue', { stepaction: 'next' }, (nodeResponse) => {
Expand Down

0 comments on commit fdc0ea2

Please sign in to comment.