Trouble Getting Started

Steve <[email protected]> Thu, 6 Dec 2007 14:57:39 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Organization http://groups.google.com
Message-ID <9d0692be-aa6f-4e60-832c-04f527d3eea2@j44g2000hsj.googlegroups.com>
Hi;

I am having trouble getting started with venkham.   I think I am
missing something conceptually which is causing me to skip a needed
step that other people see by reading between the lines of the
tutorials.

Firefox:      2.0.0.11
Venkahm:  0.9.87.1
OS:           Microsoft Windows XP Professional Service Pack 2

I would like to debug a javascript on a JSP site my company has.
Since any given functioning page is put together dynamically, I went
to the spot where the JS malfunction is and I saved the JSP as a
*.html page.  Lets call it "mypage.html".

1.  I booted up firefox fresh

2.  I booted up venkham

3.  In Venkham I went to File | Open to bring up mypage.html

4.  I scrolled to the definition for  myfieldlostfocusproc()

5.  I tried to set this as a breakpoint, but could only set it as a
future breakpoint.   I understand it is a "top level" funciton and it
hasn't been loaded.

6. I go back to firefox and open the mypage.html in the browser, from
my desktop.   "mypage.html" appears in the loaded scripts window.  The
only node under it is "onblur".

7. In firefox, in mypage.html,  I go to "myfield" type in a value and
leave "myfield" which *SHOULD* fire myfieldlostfocusproc(), and bring
the debugger to that function.

This doesn't happen and this is where I am stuck.

I don't really have a top level function in mypage.html.   It is a
page of html fields, with each field having its own function that gets
activated onblur.

A few times, noodling around, I was able to set a breakpoint on
"onblur", the only node visible under mypage.html in the loaded script
window.   That would take me to the very top of the file and would
finally activate the debugging controls like the continue button so I
could get going.   Playing around I could get to the point.........by
accident.......of having myfieldlostfocusproc()  BEING LOADED, active,
and having a real break point.

The problem is, when I stopped everything and started from scratch to
test my understanding I could never intentionally get
myfieldlostfocusproc() to load.

myfieldlostfocusproc() is called from the onblur event of the myfield
html text field in mypage.html.

LOL.  I need a clue.

As I understand debuggers:
1.  You first bring up the source code and mark some breakpoints
2.  You activate the live code
3.  Somehow the debugger links what it knows about the source to the
live code, it comes alive and stops at the breakpoint to let you begin
debugging.

I can't intentionally get #3 to happen in my steps 1 - 7 above.

Any ideas what I am missing?

Thanks in advance for any info.

Please reply to the group as the above address is just a spam catcher
I rarely check.  Im sure other people will find your coments useful
too.  Thanks

Steve