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

Method getThreadInfoFromNumber

src/debug/threads.ts:79–85  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

77 }
78
79 public getThreadInfoFromNumber(num: number): ThreadInfo | undefined {
80 for (const thread of this.threads) {
81 if (thread.num === num)
82 return thread;
83 }
84 return undefined;
85 }
86
87 public getThreads(): Thread[] {
88 return this.threads.map((thread: ThreadInfo) => new Thread(thread.num, thread.ref.name));

Callers 6

pauseRequestFunction · 0.80
stackTraceRequestFunction · 0.80
continueRequestFunction · 0.80
nextRequestFunction · 0.80
stepInRequestFunction · 0.80
stepOutRequestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected