Showing posts with label internet explorer. Show all posts
Showing posts with label internet explorer. Show all posts

Thursday, 15 May 2008

Debugging in IE

When I first started using JavaScript, I used to code and debug using Firebug and then test the same on IE. Obviously sometimes this used to fail due to some porting issues and I would be left with no means to know where and why the code is failing. I am writing this article to share something which will make life easier with debugging on IE for someone who is struggling like me.

I found a world-class free debugger for IE. Visual studio is known for the best debugger out there which can directly attach to any process running on windows, but that doesn't come for free. Microsoft started giving out express editions for free, which has a debugger but that cannot attach to already running processes. Follow the steps below to make express editions help debugging our web-pages on IE.

  • Install Visual Web Developer Express which is free and can be downloaded from
    http://msdn.microsoft.com/en-us/express/aa975050.aspx

  • Enable script debug on 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.

  • Start a dummy project with some name.

  • Start IE in debug mode with the created dummy project - Debug->start debugging.

  • The above will start IE with debug enabled and you can open your web-page and enjoy free ultimate debugger.