Saturday, March 12, 2016

Debugging minified code in Chrome's Developer Tools

There are 2 options. The first one is really simple, just go to Developer Tools > Sources > Find the minified script > Click it to open it > Click the {} button on the bottom-left corner of the script. That is going to un-minify the script. In other words, it's going to add a carriage return to make it readable but will still be the same file contents.

The second option is to use the Workspace of the Developer Tools. You can read more about it here https://developers.google.com/web/tools/setup/setup-workflow?hl=en.

No comments: