Help us make DevTools Tips better! Fill out this survey to tell us more about your DevTools habits and frustrations.
Query object instances and holders from the console
All browser DevTools have a few built-in functions in the console to do things like get the current element, or copy a string. But Safari exposes 2 nice built-in functions:
queryInstances(app.TodoItem) will return an array of all of its instances.
Or if you want to know what refers to the object you're debugging, use
queryHolders(this), which will return an array of all the other objects that have references to
Learn more about these, and other, built-in functions here.