When loading a JavaScript block via Ajax, the response is returned ok, but when viewing it in the code in Firebug (1.9.1) in the Script tab, it appears without any newlines. It’s extremely difficult or impossible to set breakpoints anywhere.
Is there a way to get Firebug to preserve the newlines?
Found a fix for Chrome.
Simply add the following snippet to where you want to debug:
and click the “Pause on all Exceptions” button in the Chrome Scripts console tab. Then simply hit F8 until you reach your try block.
Works like a charm. 🙂