Click to See Complete Forum and Search --> : looking for enviroment


nickolais909
04-16-2003, 12:45 PM
I am completely new to JavaScript. Is there any enviroments that any one can think of that is useful for debugging.
For example, displays possible errors. The only help I get so far is from the web browser telling me that there is an error on line ##.

Im sure there are better ways to write scripts than that.

Thanks

DrDaMour
04-16-2003, 12:53 PM
the debugging tool i use most of is the javascript function:
alert(string)

it's a good way to test variables values at specific points in a script or to see how far a script gets, ro what fucntions are called.

if you have
var i = 5;

alert(i) it'll prompt a 5 at you
alert("got here") will prompt a got here message to you

it's quick to implement and helps a lot

otherpeople will tell you to use try{}catch and throw, but that takes a while to use