Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


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)`




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: