Venkman to deal with aumoted browser startup

[email protected]
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Organization http://groups.google.com
Message-ID <[email protected]>
Hello,

I've been using venkman a lot recently and the need has arised for the
ability to start venkman up when the browser launches [1].
Additionally I need a way to have venkman pause/stop (not sure what the
case is) until I can set a few break points and then let me have some
way to trigger it to continue execution [2].

This need exists for use with selenium (www.openqa.org/selenium).  I
have a driven mode version of selenium which automatically lanches the
browser and begins testing web applications with javascript.  Its quite
neat, but excessively tough to debug.

I've searched the usenet archive for this group and found what looks to
be a relevant message:
http://groups.google.com/group/netscape.public.mozilla.jsdebugger/browse_thread/thread/dc7df91542af4d9f/30ce766055f50e05?lnk=st&q=startup+group%3Anetscape.public.mozilla.jsdebugger&rnum=1&hl=en#30ce766055f50e05

I could easily call 'x-jsd:debugger' or some other way within the
browser to allow venkman to startup.  The only problem with that is
that when I enter that manually into the URL bar nothing happens.  Is
that an old crusty way that used to be available to launch venkman?  Am
I missing something that will make that work?

I've also played around with the startup-init command toggling it on
and off, but that hasn't seemed to help either.

What would be ideal is some way to communicate some initial
instructions to venkman.  I was thinking via the CLI, but through the
browser URL might work too.  Something like this would probably satisfy
my wildest dreams:
mozilla-firefox -P profile --vekman --break-points
"helloworld.js:1,howdy.js:20"

Or maybe it would be cool (a lot more powerful too) to have vekman like
JS scripts, such as:
auto-break.js follows:
start(); //Start venkman
setBreakpoint("startup.html", 20);  //Set breakpoint on line 20 of
startup.html
setBreakpoint("included.js", 5);  //Set breakpoint on line 5 of
included.js
continue();
This could be executed like:
mozilla-firefox -P profile -venkman auto-break.js

Of course with all the AJAX hype around I guess vekman could even be
made to communicate with XmlHttp() and commanded via sockets.  Really
the skies the limit, I just need something that will work for me (don't
we all?).

Thanks

Ralph Sornsen

[1] Venkman on the CLI doesn't satisfy this because I don't see both
the browser window and vekman, just venkman alone

[2] Would this be synonymous with starting vekman and setting a break
point ASAP?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.