Tech Off Thread

6 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Javascript Debugging for IE possible?!?

Back to Forum: Tech Off
  • User profile image

    Is there a reliable solution for performing javascript debugging within IE?  I'm now used to the brilliant modern solutions within Firefox (ie. Firebug) and so it comes as a great frustration when having to debug the endless IE specific problems.   I've tried the VS .NET 2003 debug process on Iexplore.exe but I'd say 99% of the time the technique fails, that is the "Running Documents" tab is never filled with the running javascript files currently in the browser and so I am unable to insert breaks to begin debugging within IE.  I've also tried the "debugger" keyword but again IE doesnt acknowledge it.  Guesisng where the code will fork to and inserting ALERT statements are killing me.

    I'm just looking for a reliable approach to debugging JS issues within IE.  VS.NET process debugging more often then not doesnt work and this is just wasting time.

    Thanks for any solution.

  • User profile image

    microsoft script debugger...

    its been around longer than firefox.  came out before the demise of netscape, i believe.  at least the company i was working at still used netscape a lot at the time i found it.

    you can also check out the ie dev toolbar here

  • User profile image

    If you use Visual Studio, you probably already have the debugger. You just have to enable debugging in IE (Tools - Internet options - Advanced) : Remove the checkmark from Disable Script debugging (Internet Explorer).

    Once you have done that, IE will prompt to let you debug when it hits a debugger statement or an error.

  • User profile image

    PoulStaugaard wrote:
    Once you have done that, IE will prompt to let you debug when it hits a debugger statement or an error.

    What is the debugger statement?

  • User profile image
  • User profile image

    Enable script debugging in IE
    Clear your cache
    Attach the debugger to IE
    Make sure the debugging type is script


    use the debugging key word in your code.

    Put the actual word "debugger;" in your source.

    IE will ask you to pick a debugger when it hits this line of code.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.