sometimes when i need multiple check points i do
alert('the flow is now in function 1'); alert('the flow is now in function 2');
or sometimes just
i would like to know if there is any standard way for debugging adopted as i am finding my current method very intrusive.
thanks in advance..:)
you might want to use the console... eg within firebug
otherwise you can use debugger; to break the script and force some debugger, or set breakpoints inside firebug (demo)
Incorporating exception handling into your code could also be helpful.
And a simple technique for accessing values for simple value checking would be to clear the address bar of the browser
and replacing it with:
and press enter to run the snippet on the page. It works a lot like the console in Firebug.