getNodeStackTraces method

Future<StackTraceData> getNodeStackTraces(
  1. NodeId nodeId
)

Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation. nodeId Id of the node to get stack traces for. Returns: Creation stack trace, if available.

Implementation

Future<runtime.StackTraceData> getNodeStackTraces(NodeId nodeId) async {
  var result = await _client.send('DOM.getNodeStackTraces', {
    'nodeId': nodeId,
  });
  return runtime.StackTraceData.fromJson(
      result['creation'] as Map<String, dynamic>);
}