Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The information published in this post is now out-of-date and one or more links are invalid.
—IEBlog Editor, 20 August 2012
I thought I’d take a couple minutes to talk about Script Debugging and Internet Explorer.
Script debugging is turned off by default you can enable it by going to:
Tools->Internet Options…->Advanced->Disable Script Debugging
Prior to XPSP2 the above will turn script debugging on for all applications that host the WebBrowser control (Outlook for example).
On XPSP2 we’ve split the option into two:
Tools->Internet Options…->Advanced->Disable Script Debugging (Internet Explorer)
Tools->Internet Options…->Advanced->Disable Script Debugging (Other)
When you’ve enabled Script Debugging ‘View->Script Debugger’ will now be present to help you break into the debugger.
The debugger statement can also be placed anywhere in your code to suspend execution this is similar to setting a breakpoint.
The Stop statement is the VBScript version of JScript’s debugger statement.
There are three applications which I’ve used for script debugging. One is Visual Studio.Net, the second is Microsoft Script Debugger and the third is Microsoft Script Editor:
Miscrosoft Script Debugger:
You can obtain a copy of the Microsoft Script Debugger here:
https://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en
The main MSDN page for using the Microsoft Script Debugger can be found here:
https://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdbug/Html/sdbug_1.asp
The Microsoft Script debugger allows you to debug client side and server side scripts and provides the same functionality as most debuggers do.
Directions on using the Microsoft Script debugger can be found here:
https://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdbug/Html/sdbug_2.asp
Microsoft Script Editor:
The Microsoft Script Editor comes free with Microsoft Office XP/2003 with FrontPage.
https://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfp2k2/html/odc_fpdebugscripts.asp
Visual Studio.net:
For Visual Studio.net debugging Monica Rosculet has written an excellent article on: Debugging Script Code Using Visual Studio.
Other:
Gregg Miskelly a developer on the Visual Studio team has posted some excellent information about: How Script Debugging Works.
-Phil Nachreiner
Comments
Anonymous
January 01, 2003
Why is is that the 'debugger' statement doesn't always trigger something in the script engine. Sometimes the script engine will just ignore it. I've found that moving the statement around within a function can effect whether the debugger will get picked up. This has been going on since IE5 was released.Anonymous
January 01, 2003
I have to say, i find the script debugger in FireFox a lot easier to use whne trying to debug jsAnonymous
January 01, 2003
> The debugger statement can also be placed...
Where are you linking to?
http://blogs.msdn.com/ie/archive/2004/10/26/I%20thought%20I%C3%A2%C2%80%C2%99d%20take%20a%20couple%20minutes%20to%20talk%20about%20Script%20Debugging%20and%20Internet%20Explorer ?!Anonymous
January 01, 2003
minghong, thanks. I've corrected the debugger statement link so that it now points to the the MSDN online library.Anonymous
January 01, 2003
The comment has been removedAnonymous
January 01, 2003
Dave, have you seen this behavior with the debugger statement with Script debugging turned on?
With Firefox are you using the Javascript Console or another plug-in debugger like: Venkman?
Thanks for your feedback :)Anonymous
January 01, 2003
The comment has been removedAnonymous
January 01, 2003
The comment has been removedAnonymous
January 01, 2003
The comment has been removedAnonymous
January 01, 2003
"IE would ask me if I want to start the debugger, I say yes, click OK about 6 times and then have the Script Debugger tell me it can't get the code to show me the problem"
yeah, the script debugger gets severely confused when it comes to included javascript files..... makes debugging a royal piaAnonymous
January 01, 2003
last i checked, Netscape's javascript debugger was way better.Anonymous
January 01, 2003
Phil, i'm just using the js console that comes with FireFox as standard. I will definatly try Venkman though.
What everyone else has said pretty much sums up my feelings. The ff js console is just so much quicker and easier.Anonymous
January 01, 2003
How on earth does one debug an ASP script?
I can't seem to get it to work as I think it should. I've got IIS 6 (win 2003) set to debug ASP server side. I've got script debugger installed. I run a script with a deliberate divide by zero error in it, and I get nothing. Just a normal error message in IE as always.
What am I missing!Anonymous
January 01, 2003
Make IE not ask to debug:
http://www.tweaksforgeeks.com/IEDebug.htmlAnonymous
January 01, 2003
For the life of me I cannot get script debugging working after installing Web Developer Express. I've tried installing Microsoft Script Debugger again, and it will actually pop up when an error occurs, but the window is completely empty (no source loaded.)
I'm ripping my hair out. Any help would be appreciated.Anonymous
January 01, 2003
I am having the same problem as Nicholas. The debugger opens but it is blank. I am not running SP2. Could that be the problem?Anonymous
February 04, 2006
if you ever have to debug javascript in internet explorer, you really want to go and download the free visual...Anonymous
March 06, 2006
PingBack from http://www.infor96.com/~nio/archives/177Anonymous
April 07, 2006
PingBack from http://doublewei.wordpress.com/2006/04/08/links-for-2006-04-08/Anonymous
April 28, 2006
PingBack from http://www.zorched.net/2006/04/28/javascript-toolkits/Anonymous
May 25, 2006
PingBack from http://www.blackbirdblog.it/blog/archivio/2006/05/25/firebug-debugger/Anonymous
May 27, 2006
Microsoft-Entwickler wissen um die Vorzüge von ASP .NET, und einige der NETzWERK-Mitglieder haben sich...Anonymous
June 05, 2006
Hi there!   My name is Laurel Reitman and I’m a Lead Program Manager on the Internet Explorer...Anonymous
June 29, 2006
PingBack from http://caiwangqin.wordpress.com/2006/06/30/links-for-2006-06-29/Anonymous
September 13, 2006
I had a difficult problem with broadcasting powerpoint presentation. The tool I want to use can be found...Anonymous
September 23, 2006
From an IEBlog I've finally found how you can debug JavaScript ising Microsoft Internet Explorer. This article discusses the things you need to enable and install on your MS Windows machine.
Unfortunately I still don't understand why the script I useAnonymous
September 30, 2006
PingBack from http://scriptia.net/2006/09/jslog-un-logger-ligero-para-javascript.htmlAnonymous
November 07, 2006
Selenium Core FAQ This is an initial list of FAQs that have been collected for Selenium Core. We encourage people to add to this list and continue feedback on the items listed below: # (?) What is Selenium for?...Anonymous
November 10, 2006
PingBack from http://stubblog.wordpress.com/2006/11/10/links-for-2006-11-10/Anonymous
November 21, 2006
PingBack from http://gabrito.com/post/javascript-debugging-in-internet-explorerAnonymous
December 12, 2006
PingBack from http://wizardishungry.com/blog/archive/when-to-use-google-to-solve-your-problems-and-when-to-solve-things-yourselfAnonymous
January 10, 2007
Γενικά βρίσκω πολύ χρήσιμο να κάνω debugging σε ότι φτιάχνω.. Πρόσφατα χρειάστηκε να φτιάξω κάτι σε JavaScriptAnonymous
January 18, 2007
We had a great chat today, thanks to everyone who came out, and to Chris, Markus, Alex and Dave who wereAnonymous
March 06, 2007
PingBack from http://www.25hoursaday.com/weblog/PermaLink.aspx?guid=11c471d6-ea65-4ed2-b387-c9ec966d8418Anonymous
March 18, 2007
FirefoxであればFirebugで簡単に問題の場所をみつけられますが、IEでjavascriptのエラーが出ると、素っ気な...Anonymous
April 20, 2007
PingBack from http://brosinski.com/stephan/2007/04/20/ie-developer-toolbar/Anonymous
May 21, 2007
PingBack from http://www.thinknext.net/archives/1844Anonymous
May 31, 2007
PingBack from http://www.shinstudio.com/sh.kim/?p=244Anonymous
July 03, 2007
PingBack from http://mangiucugna.wordpress.com/2007/07/04/debugging-javascript-con-internet-explorer/Anonymous
July 16, 2007
PingBack from http://blog.james-carr.org/?p=89Anonymous
July 26, 2007
PingBack from http://recurser.com/articles/2007/07/26/jscript-debugger-for-ie/Anonymous
August 09, 2007
PingBack from http://simpledream.net/2007/08/09/interesting-links-15/Anonymous
August 19, 2007
PingBack from http://www.klauskomenda.com/archives/2007/08/17/debugging-ie/Anonymous
September 07, 2007
ohio state university football stadiumAnonymous
December 07, 2007
PingBack from http://www.jarrodgoddard.com/web-development/internet-explorer-7-javascript-debuggingAnonymous
December 17, 2007
PingBack from http://gerzsonka.wordpress.com/2007/12/18/par-szo-az-ie-debug-funkciojarol/Anonymous
December 26, 2007
PingBack from http://xhtmlforum.de/49565-zusammenh-ngender-quelltext-f-r-ie-2.html#post364207Anonymous
February 26, 2008
PingBack from http://blog.evandavey.com/2008/02/how-to-debugging-javascript-in-ie-with-microsoft-script-debugger.htmlAnonymous
March 18, 2008
PingBack from http://forum.fachinformatiker.de/skript-webserverprogrammierung/114213-javascript-ie-firefox.html#post1037901Anonymous
May 14, 2008
PingBack from http://mikepence.wordpress.com/2008/05/14/links-for-2008-05-15/Anonymous
May 29, 2008
PingBack from http://wangyu15.yo2.cn/articles/%e8%bf%9b%e8%a1%8c-html%e3%80%81javascript-%e5%92%8c-ajax-%e5%bc%80%e5%8f%91%e5%92%8c%e8%b0%83%e8%af%95%e7%9a%84%e5%bf%85%e7%94%a8%e5%b7%a5%e5%85%b7.htmlAnonymous
June 04, 2008
PingBack from http://mrlauer.wordpress.com/2008/06/05/debugging-javascript-now-in-opera/Anonymous
June 10, 2008
PingBack from http://samuel.picturesitedirect.com/allowscriptsininternetexplorer.htmlAnonymous
June 15, 2008
PingBack from http://crmwiz.wordpress.com/2008/06/15/essential-tools-for-tailoring-crm/Anonymous
July 04, 2008
PingBack from http://brogan.topmatingstories.com/programminghelpblogsie.htmlAnonymous
July 09, 2008
PingBack from http://alexia.bestvidsdigest.info/internetscripts.htmlAnonymous
July 31, 2008
使用最好的开源工具处理Web页面、脚本和样式,简化新站点和页面的开发。动态检查和修改HTML标记、CSS和JavaScript,检查DOM以及客户机-服务器通信并了解bookmark...Anonymous
September 10, 2008
PingBack from http://soulsdesign.wordpress.com/2008/09/11/internet-explorer-6-debug/Anonymous
January 20, 2009
PingBack from http://www.hilpers.com/1030161-javascript-debuggenAnonymous
January 21, 2009
PingBack from http://www.php.de/javascript-ajax-und-mehr/50886-internet-explorer-und-immediatedescendants.html#post395586Anonymous
January 21, 2009
PingBack from http://www.php.de/javascript-ajax-und-mehr/50886-internet-explorer-und-immediatedescendants.html#post395587Anonymous
January 22, 2009
PingBack from http://www.hilpers.pl/233768-debugger-js-dla-ieAnonymous
January 30, 2009
PingBack from http://darkviews.wordpress.com/2007/07/06/debugging-ajax-applications-with-ie/Anonymous
May 29, 2009
PingBack from http://paidsurveyshub.info/story.php?title=ieblog-scripting-debugging-in-internet-explorerAnonymous
June 02, 2009
PingBack from http://woodtvstand.info/story.php?id=90549Anonymous
June 08, 2009
PingBack from http://hairgrowthproducts.info/story.php?id=2047Anonymous
June 15, 2009
PingBack from http://mydebtconsolidator.info/story.php?id=21717Anonymous
June 16, 2009
PingBack from http://workfromhomecareer.info/story.php?id=19050Anonymous
April 15, 2015
Very helpful thank you.