I have changed my coding style with more complex projects to loading pages (And their embedded scripts) \"on demand\" recently. However, it is difficult to debug those scrip
Add this to your js files where you want it to break:
debugger;
Then step into/over/out like any other debugger.
Works for dynamically loaded scripts and pages. Only works in Chrome as far as I know.