Re:Chrome Devtools Tips and Tricks
by mattwad on Monday October 19, 2015 @09:30PM
(#10416913)
My latest find: if you right-click a variable that was output in the developer console, you can choose "Create Global Variable" to access it. It's super-useful combined with lodash to inspect large arrays of elements, for example.
[ Parent
| on HN ]
Also, if you're paused at a wait point, the console has access to local scope, so you often don't even need to create a global variable, just start using the local ones directly.
Re:Chrome Devtools Tips and Tricks
by glitchdout on Tuesday October 20, 2015 @09:06PM
(#10422945)
Yup. You can then use the copy command on that variable so you can paste and view the large array or json in your text editor of choice.
`copy(temp1)`