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
Member

@mmarchini mmarchini commented Feb 10, 2020

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
Member Author

@mmarchini mmarchini commented Feb 10, 2020

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
Member Author

@mmarchini mmarchini commented Feb 17, 2020

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.