llnode icon indicating copy to clipboard operation
llnode copied to clipboard

Command to find object by key/value pair

Open mmarchini opened this issue 5 years ago • 2 comments

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 avatar Feb 10 '20 18:02 mmarchini

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

mmarchini avatar Feb 10 '20 18:02 mmarchini

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.

mmarchini avatar Feb 17 '20 20:02 mmarchini