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

Method resume

valdi/vscode_debugger/src/adapter/threads.ts:195–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 }
194
195 public async resume(): Promise<Dap.ContinueResult | Dap.Error> {
196 this._sourceContainer.clearDisabledSourceMaps();
197 if (!(await this._cdp.Debugger.resume({}))) {
198 // We don't report the failure if the target wasn't paused. VS relies on this behavior.
199 if (this._pausedDetails !== undefined) {
200 return errors.createSilentError(localize('error.resumeDidFail', 'Unable to resume'));
201 }
202 }
203 return { allThreadsContinued: false };
204 }
205
206 public async pause(): Promise<Dap.PauseResult | Dap.Error> {
207 if (await this._cdp.Debugger.pause({})) this._expectedPauseReason = { reason: 'pause' };

Callers 1

_onPausedMethod · 0.95

Calls 2

resumeMethod · 0.65

Tested by

no test coverage detected