[Last Call] Learn how to a build a cloud-first strategyRegister Now


Script Debugging ?

Posted on 2006-05-17
Medium Priority
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 29

Accepted Solution

Pravin Asar earned 150 total points
ID: 16701742
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);

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), 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 …
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…
Suggested Courses

829 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