Currently, the variable view knows how to search for variables and properties whose names or values match a string. It also knows how to search recursively inside variables or properties if the data is available. However, it would also be helpful to implement more precise searching, like: foo.bar.baz or foo
Assignee: nobody → vporof
Priority: -- → P3
Nice to have feature, but not exactly on my soon-to-work-on radar. Not that hard though, so of anyone wants to give this a shot I'll gladly help.
Assignee: vporof → nobody
Status: ASSIGNED → NEW
Moving stuff to the Object Inspector component. Filter on COSMICMIGRAINE.
Component: Developer Tools: Debugger → Developer Tools: Object Inspector
I think this is pretty important for inspecting eg JSOn returned from an api. Use cases: 1. if I have a js object 'cache', I can type cache in the console and click on [Object object] to browse it in the Object Inspector. Would love to be able to filter by property names and text values 1-3 levels deep. Why does it need to be more than 1? If I get data back from the server like this: http://live-menu.staugustinesvancouver.com/taps.json ...the top level is an array, I want to filter on second-level properties like brewer and name, *and* their values. 2. if I'm at a breakpoint in the debugger, say in an anon callback from an ajax call, any local variables in the function scope of the callback or the callee function should be full loaded up. Currently they aren't. Obviously, we wouldn't want all of the Global scope brought in - you could lazy load it by expanding that list?
(In reply to Victor Porof [:vp] from comment #0) > However, it would also be helpful to implement more precise searching, like: > foo.bar.baz or > foo When working on this bug, you may want to take a look at MongoDB query language: http://docs.mongodb.org/manual/tutorial/query-documents/ Not suggesting to copy it as it has its annoyances, but that's prior art in querying nested objects.
This is probably won't be implemented in the VariableView, but I filed https://github.com/devtools-html/devtools-core/issues/803 to do it in the ObjectInspector, if we have a filter/search UI on it.
Status: NEW → RESOLVED
Last Resolved: 4 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.