onResolveNode method
Implementation
void onResolveNode(int? id, Map<String, dynamic> params) {
int? nodeId = params['nodeId'];
final ctx = dbgContext;
if (nodeId == null || ctx == null) return;
final targetId = ctx.getTargetIdByNodeId(nodeId);
Node? node;
if (targetId != null) {
node = ctx.getBindingObject(Pointer.fromAddress(targetId)) as Node?;
}
if (node != null) {
// Return a remote object reference for the node
sendToFrontend(
id,
JSONEncodableMap({
'object': {
'type': 'object',
'subtype': 'node',
'className': node.nodeName,
'description': node.nodeName,
'objectId': '${nodeId}',
}
}));
} else {
sendToFrontend(id, null);
}
}