Debug Ie7 Script Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers ie7 script debugger or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x ie7 script debugger download Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it ie7 debug javascript only takes a minute: Sign up Debugging JavaScript in IE7 up vote 159 down vote favorite 69 I need to debug JavaScript in Internet Explorer 7. Unfortunately, its default debugger doesn't provide me with much information. It tells me
Ie7 Firebug
the page that the error showed up on (not the specific script) and gives me a line number. I don't know if that is related to my problem. It'd be nice if it could narrow down the error to a line number on a specific script (like Firebug can). Is there an addon to debug JavaScript in IE7 like Firebug does in Firefox? Thank you! See also: Does IE7 have a “developer mode” or plugin like Firefox/Chrome/Safari? javascript internet-explorer-7 share|improve internet explorer 7 script error this question edited Jul 8 '10 at 0:14 asked Dec 12 '08 at 1:33 alex 266k128650804 add a comment| 18 Answers 18 active oldest votes up vote 89 down vote accepted Web Development Helper is very good. The IE Dev Toolbar is often helpful, but unfortunately doesn't do script debugging share|improve this answer edited Jan 20 '14 at 10:16 Simon 1561218 answered Dec 12 '08 at 1:48 Bob 52.8k2398110 4 Worth noting, perhaps, is that you have to turn "disable debugging" off in the advanced options. –Dan Rosenstark Aug 25 '11 at 18:45 23 I don't see any script debugging options in the IE Dev Toolbar, and the lastest version of Web Development Helper isn't working, even after changing my advanced preferences and restarting IE7. –stevebot Aug 30 '11 at 16:14 2 I just installed WDH and it worked fine on IE7. –Ates Goral Feb 15 '12 at 16:14 9 The Web Development Helper link given above is defunct. Can anyone confirm that this is the same tool hosted here? softpedia.com/get/Tweak/Browser-Tweak/… –RMorrisey Oct 3 '12 at 14:20 3 Oh the irony; The softpedia download link for Web Dev Helper dies in IE7! (The dreaded "Operation Aborted" error.) –Sean McMillan Apr 17 '13 at 17:19 | show 6 more comments up vote 40 down vote The hard truth is: the only good debugger for IE is Visual Studio. If you don't have money for
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this ie6 script error site About Us Learn more about Stack Overflow the company Business Learn more
Firefox Script Error
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Microsoft Script Error
Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up debugging javascript http://stackoverflow.com/questions/361635/debugging-javascript-in-ie7 error in ie7? up vote 4 down vote favorite All I get is this: An error has occurred in the script on this page line: 31 char: 5 error: expected identifier, string or number code: 0 url: http://example.com It's difficult to find that line since I have several external and internal scripts. How can I debug this? (By the way, the scripts have no errors http://stackoverflow.com/questions/3823465/debugging-javascript-error-in-ie7 in chrome or firefox or ie8+) javascript internet-explorer debugging share|improve this question asked Sep 29 '10 at 16:02 Matthew 5,6832069112 3 Probably a dangling comma. It's always a dangling comma. –Stephen Sep 29 '10 at 16:04 Add line 31 into your answer from the page itself. Doesn't sound as though its coming from an external file as IE normally tells you it's a problem with an external file. –GenericTypeTea Sep 29 '10 at 16:05 add a comment| 6 Answers 6 active oldest votes up vote 1 down vote accepted Try debugging it with IE8's Developer Tools (press F12). You should be able to step through the JS code (from all your scripts) to find out what is wrong with line 31 / char 5. share|improve this answer answered Sep 29 '10 at 16:06 Mike Atlas 6,36232752 add a comment| up vote 2 down vote You can download IETester which lets you use various versions of IE (6-8) and has built-in developer tools. They're not spectacular, but they're better than the nothing that old versions of IE provide. share|improve this answer edited Sep 30 '10 at 0:57 answered Sep
and alert(); becomes your only friend, or so I thought. I've recently done quite a lot of javascript DOM work for a site including some AJAX stuff and whilst it was a pleasure to develop http://bealers.com/2007/01/12/debugging-javascript-in-ie7/ in Firefox using Firebug, I'm now getting "it doesn't work" errors with IE 7 and I need something more. A bit of Googling comes up with a couple of useful links here and here which looked https://www.techwalla.com/articles/how-to-stop-internet-explorer-script-error-messages like good advice, so I followed it thus: Fire up IE7 Tools -> Internet Options -> Advanced: Disable script debugging (Internet Explorer) is ticked, untick it. Restart IE. Right click on the menu bar area and script error enable the Menu bar (mine was hidden anyway) then go to View -> Script Debugger -> Open. If you don't get a pop-up asking you to choose a debugger (I didn't) then you need to install the Microsoft script editor which comes with MS Office (weirdly). Just to check, Windows-key and F should bring up a search, look for MSE7.exe if you don't have it (I didn't) put your office CD in and ie7 script debugger run setup. Under office tools -> HTML Tools -> Web scripting -> Web debugging, right click and select "Run from my computer". Restart IE. View -> Script Debugger -> Open should now give you your pop-up, yay! Now you can open your page in IE and make it break, when it does you shoudl get a "Do you want to debug" message. Yes we do so a press of 'Yes' gives us the same pop-up, selecting the Script editor allows us to do things other than just adding alerts() everywhere. For example we can pause the interpreter, step over each line, add watches and other normal debug things. In conjunction with the View DOM option in the IE 7 developers toolbar IE almost doesn't suck so much now. Using the debugger doesn't automatically fix your code, though. Refererences: http://erik.eae.net/archives/2005/07/04/21.49.50/ http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html p.s. I only tried the other debugger option once, it didn't look all that so I stopped using it. ABOUT THE AUTHOR bealers HI, I'm Bealers and this is my blog where I share the ups and downs of my journey from burnt-out mess to productive and positive. If you're new to the site then you might want to start here. PREVIOUS POST← The Truth in Ad sales NEXT POSTSymfony job going → Stay up to da
ProductsHomearound the homeproductivityHow to Stop Internet Explorer Script Error MessagesHow to Stop Internet Explorer Script Error MessagesBy Techwalla Internet EditorSometimes Internet Explorer will give you script error messages when you are browsing the Web. You should not be alarmed. Script error messages normally occur when there is a problem with the programming on the Web page you are visiting and have nothing to do with Internet Explorer itself. In most cases, you will still be able to view the Web page in question, even with the script error. If you find you are getting a lot of script error messages and find them irritating, you can take measures to stop Internet Explorer from showing them to you. Internet Explorer is set to automatically debug the Web sites it visits. By disabling the debug feature, you can eliminate the possibility of getting script error messages while you are online.Things You'll NeedConnection to the InternetInternet ExplorerComputerStop Those Pesky Script ErrorsStep 1Start Internet Explorer.Step 2Select 'Tools' from the toolbar menu.Step 3Choose 'Internet Options.'Step 4Click on the 'Advanced' tab.Step 5Scroll through the list of options until you see the heading labeled 'Browsing.'Step 6Put checks in the boxes labeled 'Disable Script Debugging (Internet Explorer' and 'Disable Script Debugging (Other).' When you have done this, click 'OK.' You should no longer see script error messages when you cruise the Internet.Tips & WarningsAny time you find yourself with more questions than answers regarding how to stop script error messages in Internet Explorer, point yourself in the direction of the Internet Explorer FAQs page (see Resources below).Remember, Internet Explorer runs best with a Pentium processor and requires at least 64 MB of memory to operate. A high-resolution monitor will go a long way toward giving you the best possible picture quality, but is not a requirement for running the program.Security is built in to Internet Explorer. You are automatically protected from spyware, adware, phishing and pop-up ads when you download the program. You can also adjust your Internet Explorer settings to manage cookies and objectionable Web site content on your own.These instructions are only valid with Internet Explorer 7.0. Other version