Advertisements

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).

SNAGHTML518bd738

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: https://skydrive.live.com/redir.aspx?cid=b06529fd3fc75473&resid=B06529FD3FC75473!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: https://skydrive.live.com/redir.aspx?cid=b06529fd3fc75473&resid=B06529FD3FC75473!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:

image

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

SNAGHTML5194f37e

SNAGHTML51952db0

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

Advertisements

About Geoff Varosky
Geoff Varosky is a Senior Architect for BlueMetal Architects, based out of Watertown, MA. He has been architecting and developing web based applications his entire career, and has been working with SharePoint for the past 13 years. Geoff is an active member of the SharePoint community, Co-Founder and Co-Organizer of the Boston Area SharePoint Users Group, co-founder for the Boston Office 365 Users Group, co-organizer for SharePoint Saturday Boston and speaks regularly at SharePoint events and user groups.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: