JavaScript debugging question

R

R0bert Neville

This inquiry is for Venkman users. I am debugging a complex JavaScript
routine. Venkman has the ability to trigger break points based on
specific criteria or functions. I need the debugger to break on a div
element. My JavaScript creates an array of all ul elements. It is
recursive and finds additional list until none exist. The problem
occurs when it places a div element in the array. I can not find where
the code goes down the wrong path.

These links gave me an understanding about debugging and Venkman.
Please let me know if have any further suggestions.

http://www.svendtofte.com/code/learning_venkman/
http://www.mozilla.org/projects/venkman/venkman-walkthrough.html


I have tried the following expressions in Venkman's breakpoint trigger
function.

menu.parentNode.nodeName.toLowerCase() =="div";

menu.parentNode.localName.toLowerCase() =="div";

menu.parentNode.tagName.toLowerCase() == "div";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top