Debugging JavaScript in IE11
21,087
- Open your Page.
- Press
F12
to display the tools. - Switch to the debugging tab.
- Add your breakpoints.
- Refresh by pressing
F5
orCtrl+F5
orCtrl+R
.
Author by
Michael Broschat
Formerly, SharePoint administrator, contractor to US government. Amateur developer in C# and JavaScript. Currently, retired.
Updated on July 09, 2022Comments
-
Michael Broschat almost 2 years
The F12 tools look good, and I see controls for most of what I would like to use (Continue, Step In, Step Out). But the HTML app I want to debug runs before I can start the F12 tools. What I need is a Restart button, it would seem to me.
Am I missing seeing this, or am I out of luck?
By the way, I see the same problem in Chrome.
-
Michael Broschat almost 10 yearsThis works but intermittently. First time, only Ctrl + R worked. All failed after that for three or four reloads, but eventually it "stuck" on the breakpoint, and I can do what I want.
-
Servus7 almost 10 yearsMy IE11 does the debug wonderful after reloading the page by pressing only
F5
. Maybe you just found the first errors in your code.;-) Try out:window.onload = function(){ //Debug at this point console.log("test"); }
-
davidluckystar over 4 yearsi used to clear network cache just in case as well; also sometimes my app won't load until i close F12 -> then it works -> i press F12 again and work as usual