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

Function handleInspectEvent

src/debug/dart_debug_impl.ts:1585–1592  ·  view source on GitHub ↗
(event: VMEvent)

Source from the content-addressed store, hash-verified

1583 }
1584
1585 protected async handleInspectEvent(event: VMEvent): Promise<void> {
1586 const isolateRef = event.isolate;
1587 const instanceRef = (event as any).inspectee as VMInstanceRef;
1588 const thread = isolateRef ? this.threadManager.getThreadInfoFromRef(isolateRef) : undefined;
1589 if (isolateRef && instanceRef && thread) {
1590 this.sendVariable(thread.storeData(new InspectedVariable(thread.storeData(instanceRef))));
1591 }
1592 }
1593
1594 private sendVariable(variablesReference: number) {
1595 const evt = new OutputEvent("");

Callers

nothing calls this directly

Calls 2

getThreadInfoFromRefMethod · 0.80
storeDataMethod · 0.45

Tested by

no test coverage detected