I recently wrote a blog post about how to control minification per request. However, that strategy will not help you if the minification itself is causing a bug.
Fortunately Chrome has an absolutely amazing set of developer tools that can help you debug any script, even one that have been minified! Just follow these very simple steps:
- Navigate to the page in Chrome.
- Launch the developers tools (by pressing F12).
- Open the JavaScript file in the Sources tab.
- Activate the amazing "Pretty print" feature.
- Debug those scripts!
Enjoy,
Tom
No comments:
Post a Comment