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

Function pauseRequest

src/debug/dart_debug_impl.ts:605–623  ·  view source on GitHub ↗
(response: DebugProtocol.PauseResponse, args: DebugProtocol.PauseArguments)

Source from the content-addressed store, hash-verified

603 }
604
605 protected pauseRequest(response: DebugProtocol.PauseResponse, args: DebugProtocol.PauseArguments): void {
606 const thread = this.threadManager.getThreadInfoFromNumber(args.threadId);
607
608 if (!thread) {
609 this.errorResponse(response, `No thread with id ${args.threadId}`);
610 return;
611 }
612
613 if (!this.vmService) {
614 this.errorResponse(response, `No VM service connection`);
615 return;
616 }
617
618 this.vmService.pause(thread.ref.id)
619 .then(() => {
620 this.sendResponse(response);
621 })
622 .catch((error) => this.errorResponse(response, `${error}`));
623 }
624
625 protected sourceRequest(response: DebugProtocol.SourceResponse, args: DebugProtocol.SourceArguments): void {
626 const sourceReference = args.sourceReference;

Callers

nothing calls this directly

Calls 3

pauseMethod · 0.80
sendResponseMethod · 0.80

Tested by

no test coverage detected