nodejs / llnode

An lldb plugin for Node.js and V8, which enables inspection of JavaScript states for insights into Node.js processes and their core dumps.
Other
1.15k stars 99 forks source link

Command to find object by key/value pair #334

Open mmarchini opened 4 years ago

mmarchini commented 4 years ago

Similar to v8 findrefs -n, but it would take a property name and the value. This can help narrow down the search when there's a lot of objects, but we're looking only for those with a particular value.

mmarchini commented 4 years ago

More sophisticated queries would also be interesting, for example: find all objects with value "bar" in key foo and without the key biz.

mmarchini commented 4 years ago

Just came across a real world example where this would be useful: find all ServerResponse objects where .statusCode=400. I imagine finding requests/responses based on field values is a common use case when debugging servers.