Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best way to debug Javascript

Status
Not open for further replies.

RPrinceton

Programmer
Jan 8, 2003
86
US
Hi Everyone,
I am relatively new to this JavaScript stuff so please bear with me. What is the best way to debug JavaScript? In particular tracing logic flow, examining the contents of variables etc. I have been using "alerts" to accomplish this but I believe there is a better way. Please advise. Thx in advance.
Regards,
R Princeton
 

Microsoft's Visual Interdev is the best I've seen. They also do a free "Script Debugger"... or you could download Firefox and the Venkman JavaScript Debugger plugin.

Hope this helps,
Dan



The answers you get are only as good as the information you give!

 
I use alerts placed at points I have questions. If I don't wan't to stop workflow, I use the window.status=_____ so I can see things in the status bar.

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
zen.gif

 
another option is to add a textarea to the page and dump the results into there.
 
Or add a span or div to a page and stick the result in there using innerHTML or innerText. I prefer that to the textbox approach (which I used to use).


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top