You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
that Venkman debugger comes with FF, its in the tools menu.
it doesnt seem to easy to use, i loaded my script into the pane on the right - do i then run it?
The Venkman thing can be a little difficult to use because you don't run the code like you would with a traditional debugger.
What you need to do is select your page and function from the left hand pane which will then load into the right hand pane, stick in a break point by clicking in the margin at the line you want to break at. Then go back to the browser and press refresh.
But if you want to do it without a debugger then alerts are best (not idea). You would need to maybe have some sort of debugging function in Javascript to format output etc etc.
My favorite is 1st JavaScript Editor http://yaldex.com/JSFactory_Pro.htm.
1st JavaScript Editor Pro is advanced JavaScript Editor, Validator and Debugger for beginners and professionals!