(params: Dap.RestartFrameParams)
| 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) |
nothing calls this directly
no test coverage detected