Easier debugging of minified JS code in Chrome 12

4,860 views
Skip to first unread message

Javier Pedemonte

unread,
Jun 17, 2011, 12:23:59 AM6/17/11
to maqett...@googlegroups.com
Chrome 12 introduced a feature I've wanted for a while:  "pretty printing" of minified JS code in the debugger window.

In the Scripts tab of the Chrome debugger, right click in the JS source and select De-obfuscate Source.  For minified code, this will put one expression per line and will properly indent the source, making it much easier to read and set breakpoints.


javier
- maqetta team

Dan Andreescu

unread,
Apr 4, 2013, 9:46:31 AM4/4/13
to maqett...@googlegroups.com
In recent versions (I am on 26 but I'm sure this started earlier) this feature has been moved.  It is now a button on the lower left part of the source window that looks like this: { } and says "Pretty Print" when you hover over it.

Rolland Istvan Orgonas

unread,
Mar 27, 2014, 9:51:07 AM3/27/14
to maqett...@googlegroups.com
Thanks!
Reply all
Reply to author
Forward
0 new messages