MCPcopy Create free account
hub / github.com/Snapchat/Valdi / restartFrame

Method restartFrame

valdi/vscode_debugger/src/adapter/threads.ts:241–261  ·  view source on GitHub ↗
(params: Dap.RestartFrameParams)

Source from the content-addressed store, hash-verified

239 }
240
241 async restartFrame(params: Dap.RestartFrameParams): Promise<Dap.RestartFrameResult | Dap.Error> {
242 const stackFrame = this._pausedDetails?.stackTrace.frame(params.frameId);
243 if (!stackFrame) {
244 return this._stackFrameNotFoundError();
245 }
246
247 const callFrameId = stackFrame.callFrameId();
248 if (!callFrameId) {
249 return errors.createUserError(
250 localize('error.restartFrameAsync', 'Cannot restart asynchronous frame'),
251 );
252 }
253
254 await this._cdp.Debugger.restartFrame({ callFrameId });
255 this._expectedPauseReason = {
256 reason: 'frame_entry' as PausedReason,
257 description: localize('reason.description.restart', 'Paused on frame entry'),
258 };
259 await this._cdp.Debugger.stepInto({});
260 return {};
261 }
262
263 async stackTrace(params: Dap.StackTraceParams): Promise<Dap.StackTraceResult | Dap.Error> {
264 if (!this._pausedDetails)

Callers

nothing calls this directly

Calls 5

callFrameIdMethod · 0.80
restartFrameMethod · 0.65
stepIntoMethod · 0.65
frameMethod · 0.45

Tested by

no test coverage detected