Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you expand all objects in the console view of chrome?

Is there a short cut for me to expand all these objects? I have attached a photo of what i would like to expand below. Any help would be amazing.

enter image description here

like image 811
user2407147 Avatar asked Oct 18 '16 20:10

user2407147


People also ask

How do you expand all elements in inspect?

If you hold ctrl + alt for windows (just opt on a mac) while clicking on the arrow of the element you want to expand, it will expand and all of its children will expand. So, if you ctrl + alt click on the <html> tag, that should expand the entire page.


1 Answers

Run the following code in console of devtools-on-devtools:

$$('.console-view-object-properties-section').forEach(e => e._section._objectTreeElement.expandRecursively())

Then switch to the original devtools window.


Based on chromium source code for the devtools.


For convenience you can save the code in snippets and run it later from there or by typing the snippet name in the commands palette (Ctrl-P or Cmd-P hotkey).

How to open devtools-on-devtools:

  1. Open devtools first and switch its Dock side in the menu to a detached (floating) window

    enter image description here

  2. in the now detached devtools press CtrlShifti or i on MacOS,
    which will open devtools-on-devtools in a new window

like image 181
wOxxOm Avatar answered Sep 22 '22 20:09

wOxxOm