Internet Explorer Registry Shortcuts for Enabling and Disabling Scripting Error Notifications

If you develop for websites, such as SharePoint, you probably are often enabling and disabling the Display a notification about every script error in Internet Explorer (especially version 9) often when testing and debugging JavaScript code in sites (see image below for reference).


While it is not the end of the world, it can be a few tedious extra clicks to enable and disable this as it is needed, as with IE9, it does not have the small icon with the Error on page text in the task bar like it did in previous versions, that will just allow you to click on it and view the error image.

To change this option in IE, you are required to go to Tools > Internet Options > Advanced > scroll down to Browsing, and check or uncheck this option.

To save a few clicks to make my life easier, I’ve created two registry files to turn this option on and off, you can see them below, along with the contents of the file below if you would rather just copy and paste it into your own .reg file.

Disable Script Debugging.reg:!1527&parid=B06529FD3FC75473!134

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Error Dlg Displayed On Every Error"="no"

Enable Script Debugging.reg:!1526&parid=B06529FD3FC75473!134

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Error Dlg Displayed On Every Error"="yes"

Simple, but effective! I actually have a custom toolbar on my Windows 7 desktop that links right to here, to make them even easier to access:


The one caveat however, is that you need to click on two confirmation boxes:



I find this less intrusive to debugging than having to click through to the internet options screen, your mileage, however, may vary.

%d bloggers like this: