Internet Explorer Developer Tools Don't Show Source Using RequireJS

I am trying to debug a problem with a page where IE 9 will work for the first time on my requirejs / backbone application, but will not restart. However, when I try to debug this problem using the IE f12 developer tools, I cannot go to the source to set a breakpoint, because IE does not load any of the files that RequireJS includes. How can I get around this problem to fix my IE headache?

+5
source share
3 answers

I think I'm late for the party, but I hope that my answer will help you and others. The file you want to debug, or the line in the file, just add this -> debugger; before this line.

So, when require.js loads your script and encounters this line, that is debugger;, it exists, it automatically stops at that line.

+3
source

You can create one js file with the required tools:

In your index.html link to this file instead of require.js.

You can debug using IE.

0
source

I have the same problem from time to time. Which sometimes helps: close all files in the Debugger view, leave DevTools open, click “Play” to continue the page, and then take your action on the page or reload if it stops working with the debugger ; again, all files will be downloaded. But still exploring;)

-1
source

All Articles