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

Function nextRequest

src/debug/dart_debug_impl.ts:1117–1127  ·  view source on GitHub ↗
(response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments)

Source from the content-addressed store, hash-verified

1115 }
1116
1117 protected nextRequest(response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments): void {
1118 const thread = this.threadManager.getThreadInfoFromNumber(args.threadId);
1119 if (!thread) {
1120 this.errorResponse(response, `No thread with id ${args.threadId}`);
1121 return;
1122 }
1123 const type = thread.atAsyncSuspension ? "OverAsyncSuspension" : "Over";
1124 thread.resume(type).then(() => {
1125 this.sendResponse(response);
1126 }).catch((error) => this.errorResponse(response, `${error}`));
1127 }
1128
1129 protected stepInRequest(response: DebugProtocol.StepInResponse, args: DebugProtocol.StepInArguments): void {
1130 const thread = this.threadManager.getThreadInfoFromNumber(args.threadId);

Callers

nothing calls this directly

Calls 3

sendResponseMethod · 0.80
resumeMethod · 0.45

Tested by

no test coverage detected