How to debug Javascript with IE 8

Cédric Boivin picture Cédric Boivin · Aug 20, 2009 · Viewed 102k times · Source

How can we debug JavaScript with IE 8 ?

The JavaScript debbuging with Visual Studio doesn't work after an update to IE 8.

Answer

Cédric Boivin picture Cédric Boivin · Aug 20, 2009

I discovered today that we can now debug Javascript With the developer tool bar plugins integreted in IE 8.

  • Click ▼ Tools on the toolbar, to the right of the tabs.
  • Select Developer Tools. The Developer Tools dialogue should open.
  • Click the Script tab in the dialogue.
  • Click the Start Debugging button.

You can use watch, breakpoint, see the call stack etc, similarly to debuggers in professional browsers.

You can also use the statement debugger; in your JavaScript code the set a breakpoint.