llnode
llnode copied to clipboard
Command to find object by key/value pair
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.
More sophisticated queries would also be interesting, for example: find all objects with value "bar" in key foo and without the key biz.
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.