Re: Debugging XUL code

James Ross <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
George V. Reilly wrote:
> I'm using Venkman 0.9.85.jw2 from
> http://getahead.ltd.uk/ajax/venkman

A lot of the text of that page is wrong. The latest version from the 
development site works fine (you have to change maxVersion, because they 
renamed FF 1.1 to FF 1.5), and *would* be on the lame addons site if 
they would LET ME put it there!

> Is there some Venkman magic that I'm missing?

Probably nothing more than the Exclude Browser Files in the Debug menu, 
which is checked by default, and will exclude all chrome files (i.e. 
browser and extensions). (These files are usually not what you are 
interested in with Venkman, and also tend to spew a lot of really 
irritating errors.)

After unticking that, you should see all the extension files [1]. Note 
that you wont be able to use the source code view for the XUL files 
unless you enable Pretty Print, but if all the code is in .js files, 
this should not be a problem (though you may like Pretty Print anyway!).

Beyond that, it's down to you setting breaks points and having fun. :)

[1] If you don't, or only seem some (but not the ones you want), you may 
need to restart Venkman. Very occasionally I've had to restart the 
entire of Firefox, too.

-- 
James Ross <[email protected]>
ChatZilla Developer
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.