Debug Error In Ie7
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Ie7 Debug Toolbar
and policies of this site About Us Learn more about Stack Overflow ie7 debugger the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation microsoft ie7 Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them;
Internet Explorer Debug Error
it only takes a minute: Sign up debugging javascript 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
Ie7 Developer Toolbar
scripts. How can I debug this? (By the way, the scripts have no errors 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 d
360 games PC games how to debug javascript in ie 11 Windows games Windows phone games Entertainment All Entertainment
Web Development Helper
Movies & TV Music Business & Education Business Students & educators debug javascript chrome Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet http://stackoverflow.com/questions/3823465/debugging-javascript-error-in-ie7 Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All https://support.microsoft.com/en-us/kb/308260 Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
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 in Firefox using Firebug, I'm now getting "it doesn't work" http://bealers.com/2007/01/12/debugging-javascript-in-ie7/ 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 like good advice, so I followed it thus: Fire up IE7 Tools -> Internet Options http://blog.berniesumption.com/software/how-to-debug-javascript-in-internet-explorer/ -> Advanced: Disable script debugging (Internet Explorer) is ticked, untick it. Restart IE. Right click on the menu bar area and enable the Menu bar (mine was hidden anyway) then go to View -> Script Debugger -> Open. If you don't debug error 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 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 debug error in 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 date Occasionally I send out an email to members of my mailing list, if you'd like to be included then please enter your details below. Once it's finished you'll also get a sample chapter from my upcoming book. First Name: Email address: Tagsanxiety confidence diet habits mindfulness notebud onenote podcast productivity running stress workflows writing Search for: _ © Darre
off the press Making DNArtwork #5: drinking the Microsoft Kool-Aid Making DNArtwork #4: the pre-launch page Making DNArtwork #3: what will it look like? Making DNArtwork #2: competitor analysis Archives September 2016 July 2016 June 2016 November 2015 October 2015 April 2015 March 2015 February 2015 January 2015 October 2011 May 2011 April 2011 November 2010 October 2010 September 2010 April 2008 November 2007 March 2007 Recent Commentsbernie on On abandoning GulpRichard Rivers on On abandoning GulpHelen Jones on Making DNArtwork #2: competitor analysisKate on Daphne's tweeting catflapSlam on Daphne's tweeting catflap How to debug JavaScript in Internet Explorer I want to share with you a trick for getting a world-class debugger for free in IE. JavaScript debugging in Visual Web Developer Express Some background: users of Visual Studio have long known that it comes with an awesome debugger, probably the best JavaScript debugger there is (though Firebug is catching up fast). Whenever you get a JavaScript error, Visual Studio can connect to the Internet Explorer process and start debugging. You can pause the execution of the code, rewind and fast-forward execution, modify data held in variables and get notified when specific variables change in value. Once you're used to it, coding without a debugger makes you feel like a blind man in a dark room looking for a black cat that isn't there*. The only problem is that it costs upwards of £500. Microsoft have released an excellent free edition of Visual Studio for web development called Visual Studio Express, but among the features reserved for the professional edition is the ability to connect to a process. Hence when you get a JavaScript error in a web page, VSE won't appear in the list of possible debuggers. The work-around is to get VSE to launch IE for you, so that it owns the process and doesn't have to explicitly connect to it. This article was originally written for an older version of Visual Studio Express called Visual Web Developer Express. The instructions should still work, let me know if you have any issues with them. Step 1 Internet Explorer Options First enable debugging in IE: go to Tools > Internet Options > Advanced, and make sure "Disable Script Debugging (Internet Explorer)" is unchecked and "Display a notification about every script error" is checked. Step 2 Then Download and install VSE Step 3 Creating a new empty website in VWD express Create a new empty website Step 4 Click the "Start Debugging" button. You will be prompted to enable debugging for this website - do so. VSE will then launch I