(response: DebugProtocol.RestartFrameResponse, args: DebugProtocol.RestartFrameArguments)
| 1149 | } |
| 1150 | |
| 1151 | protected restartFrameRequest(response: DebugProtocol.RestartFrameResponse, args: DebugProtocol.RestartFrameArguments): void { |
| 1152 | const frameId = args.frameId; |
| 1153 | |
| 1154 | if (!frameId) { |
| 1155 | this.errorResponse(response, "unable to restart with no frame"); |
| 1156 | return; |
| 1157 | } |
| 1158 | |
| 1159 | const data = this.threadManager.getStoredData(frameId); |
| 1160 | const thread = data.thread; |
| 1161 | const frame: VMFrame = data.data as VMFrame; |
| 1162 | |
| 1163 | thread.resume("Rewind", frame.index).then(() => { |
| 1164 | this.sendResponse(response); |
| 1165 | }).catch((error) => this.errorResponse(response, `${error}`)); |
| 1166 | } |
| 1167 | |
| 1168 | protected reverseContinueRequest(response: DebugProtocol.ReverseContinueResponse, args: DebugProtocol.ReverseContinueArguments): void { |
| 1169 | this.logToUser("Reverse continue is not supported\n"); |
nothing calls this directly
no test coverage detected