How to disable Javascript Debugging in IE11?
The options in VS for exceptions to determine if the debugger should break on an exception. Though VS will always break on an unhandled exception and a language break (debugger). The options do not stop the script debugger from being attached when you launch IE from VS.
The options in VS to enable or disable JIT debugging change just the just-in-time debug feature. Enabling JIT debug simply means that if a running application not launched by VS hits a break condition the user should be prompted if they want to attach VS to debug the application. This also don't change if script debugging is enabled when you launch IE from VS.
The options in Internet Explorer to disable script debugging only changes if IE should run with debugging enabled always. In IE11 with VS2013 this feature is never needed but is there to support older versions of VS.
The easiest way to get the behavior you want is to do:
- Right click on a aspx/html file there is a ‘Browse with…’ item. This will bring up a dialog to configure your browser.
Click the Add button. Add something like:
Path: c:\Program Files (x86)\Internet Explorer\iexplore.exe Friendly name: Internet Explorer (no debug)
- Set that as your default
Related videos on Youtube
![Wayne Bloss](https://i.stack.imgur.com/crb0b.jpg?s=256&g=1)
Wayne Bloss
Updated on September 18, 2022Comments
-
Wayne Bloss almost 2 years
I am building an ASP.NET Web Forms application (not site) and whenever I debug with Internet Explorer, I cannot seem to disable the integrated Javascript debugging with Visual Studio 2013 Pro.
How do I get it to stop breaking on Javascript exceptions?
My OS is Windows 2012 Server R2 (so, equivalent to Windows 8.1 Pro) with IE11. I have tried every setting that I could find but nothing has worked so far. I have even logged out and back in. I am going to try a complete reboot right now.
The screenshots below show all the settings I've tried.
Exception and Settings:
Visual Studio Options - Debugging:
Internet Explorer Options:
BrowserLink Disabled
(Note: This question was also posted at stackoverflow.com. I'm not sure where it belongs.)
-
Daniel B almost 10 yearsYou're confusing uncaught vs thrown. Also, why not fix your code? ;)
-
Wayne Bloss almost 10 yearsI guess my main concern is - I have checked "Disable script debugging" in Internet Options and it's not working. I disabled everything else in an attempt to see what gives.
-
-
Wayne Bloss almost 10 yearsIt sounds like the bottom line is - don't start IE from VS-debug if I don't want the debugging to occur.
-
Andy Sterland almost 10 years@waynebloss pretty much but if you use Ctrl+F5 to launch IE without debugging you'll also not be debugging your managed asp.net code. Which you may or may not want.