Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to find object by key/value pair #334

Open
mmarchini opened this issue Feb 10, 2020 · 2 comments
Open

Command to find object by key/value pair #334

mmarchini opened this issue Feb 10, 2020 · 2 comments

Comments

@mmarchini
Copy link
Contributor

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
Copy link
Contributor Author

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

@mmarchini
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant