Script Debugging ?

Posted on 2006-05-17
Last Modified: 2008-02-26
I own Visual Studio .NET 2003, have tried MS Script Debugger under IE6 and have seen Script Debugger 1.5 from some commercial source.  Why oh why is it SOOOOOOOOOOOO impossibly difficult to do Javascript debugging, as easy and painless as debugging my C# code.  It is bad enough with the hundreds of bugs in IE and baffling browser misinterprations of the same code.

Can someone please recommend a working Javascript debugger and provide me with an accurate walk-thru for debugging Javascript code that is embedded in an .ASCX page(we're making Rainbow Modules).  To make things easier i should be able to copy the Javascript code from the .ASCX page and place it into an .ASPX page or even seperate .JS file but eventually it will be meshed with the .ASCX page.  If i can set breakpoints, step thru, lookup variable contents, then I'll be happy.  

I've already tried the instructions on:

Thank you.
Question by:ljaques
    1 Comment
    LVL 28

    Accepted Solution

    You could use FF, or add a following code to you file.
    That can help you catch errors and display.

    or use some editors/tools such as

    <title>Catch error </title>

    <script language="javascript">
    function handleErr(err)
    txt="There was an error on this page.\n\n"
    txt+="Error: " + err + "\n"
    return true
    alert ('Message  ' + myvar);

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    network + 7 57
    javascript question 6 22
    Javascript newbie 5 30
    Video will not go into background 20 16
    This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
    In my daily work (mainly using, I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now