If you have Visual Studio or VS.Net or even the MS Debugger, you can use these to debug and step through your Javascript code.
Just put in "debugger;" anywhere in your code and it will bring up your debugger at that 'breakpoint'.
You will need to have script debugging enabled, in...