MCPcopy Create free account
hub / github.com/Marus/cortex-debug / pauseRequest

Method pauseRequest

src/gdb.ts:3017–3029  ·  view source on GitHub ↗
(response: DebugProtocol.PauseResponse, args: DebugProtocol.PauseArguments)

Source from the content-addressed store, hash-verified

3015 }
3016
3017 protected async pauseRequest(response: DebugProtocol.PauseResponse, args: DebugProtocol.PauseArguments): Promise<void> {
3018 try {
3019 if (this.args.ctiOpenOCDConfig?.enabled && this.args.ctiOpenOCDConfig?.pauseCommands && this.serverController.ctiStopResume) {
3020 this.serverController.ctiStopResume(CTIAction.pause);
3021 } else {
3022 const done = await this.miDebugger.interrupt();
3023 }
3024 this.sendResponse(response);
3025 }
3026 catch (msg) {
3027 this.sendErrorResponse(response, 3, `Could not pause: ${msg}`);
3028 }
3029 }
3030
3031 protected async continueRequest(response: DebugProtocol.ContinueResponse, args: DebugProtocol.ContinueArguments): Promise<void> {
3032 try {

Callers

nothing calls this directly

Calls 2

ctiStopResumeMethod · 0.65
interruptMethod · 0.65

Tested by

no test coverage detected