MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / restartFrameRequest

Function restartFrameRequest

src/debug/dart_debug_impl.ts:1151–1166  ·  view source on GitHub ↗
(response: DebugProtocol.RestartFrameResponse, args: DebugProtocol.RestartFrameArguments)

Source from the content-addressed store, hash-verified

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");

Callers

nothing calls this directly

Calls 3

getStoredDataMethod · 0.80
sendResponseMethod · 0.80
resumeMethod · 0.45

Tested by

no test coverage detected