Over the last couple years, the Mozilla code base has evolved significantly on the trunk. Unfortunately, development on the JavaScript Debugger has not kept pace - the code has "bitrotted" significantly, and introduced significant bugs.
This is a serious problem. It's equally serious that no one is hacking on it. I've found it to be a very useful tool for working on chrome code, and XULRunner apps would benefit from having a debugger handy.
So here's what I want to do. I want to schedule a weekend meeting for 2 pm PDT Saturday at #venkman on moznet. The goal, as I see it, is to plan fixing Venkman so it is usable on the XULRunner 1.9 platform. (Getting it working on Firefox 3 would be a nice thing, too.) I want to see who's willing to contribute hours (weeks, more likely) of coding and/or reviewing to this goal. In particular, I'm worried about trying to find out whatever API changes are needed in Venkman itself (not what API Venkman has to call) and getting them in before 1.9 branches.
Watch this space for more details; I'll write up a draft plan for the meeting, so we have some things to think about.
UPDATE: So, here goes:
First thoughts - Venkman isn't quite as bad off as I initially thought. I tried to install a 1.8-based XPI on the 1.9 XULRunner build, and that didn't work very well at all. When I finally figured out how to build a Venkman XPI:
export CONFIGDIR=(...)/mozilla/config/ cd mozilla/extensions/venkman/xpi/ sh makexpi.sh
Everything seemed to be okay. Starting Venkman via
window.open("chrome://venkman/content/", "_blank", "chrome")
works. But it doesn't take long to notice a few oddities.
Ultimately, I think these are all fixable. The real problem, as I
mentioned earlier, is a lack of current contributors. Venkman, like
Inspector, has been neglected for quite a while. There are 136 open bugs
against Venkman right now. (Inspector's been doing much better lately.) Looking at
extensions/venkman/resources/content/ right now, there are a lot
of "2006", "2005", "2004" files... meaning that exactly one file has been
touched here in over eight months! 136 bugs + eight months bitrot means an
effectively unowned module - or a super-stable, frozen one. :-) Given the
fact this is on trunk, and the above very-obvious bugs, I'd say it isn't the
latter.
So here's what I propose: for 1.9.0, we need two or three chrome app experts to spend a few days fixing the above issues, and reviewing patches. Next, we need to go through the bug list and triage it, both for priority and time constraints. If there are any IDL changes needed, those should go first in the bug list because we'll have a harder time getting such changes in 1.9.1. (There aren't likely to be very many.) We should start planning for 1.9.1 - whatever it is - right away. For 1.9.0, I think we're effectively in maintenance mode - there's too little time for big changes.
If we somehow find the time, (i.e. we decide that all the high-priority, low-risk issues have been fixed, and we don't want to chance further 1.9.0 changes), we should probably write a miniature XULRunner app with a known set of bugs and start running Venkman against it. This becomes a "reference" application for Venkman testing.
Reviews for new patches should emphasize both tests and JavaDoc'd functions. I'd love to see some xpcshell tests of the jsd code which Venkman depends on.
We need to start putting out "nightlies" of Venkman, and making them available for trunk usage. The simplest way to do this might be a bit of tinderbox adjustments. Fortunately, building a Venkman XPI takes only a few seconds.
So who's willing to spend time on this? The good news is that Venkman's code is mostly XUL + JS, so you don't need C++ hacking skills to fix many of the bugs against Venkman.
Posted by WeirdAl at August 31, 2007 1:43 PMPossibly a dumb question, but what does Venkman offer that Firebug doesn't?
Posted by: Matthew Wilson at September 1, 2007 4:44 AMIn case I don't make the meeting, https://bugzilla.mozilla.org/show_bug.cgi?id=392475 already has a patch for getting Venkman to build in tree as a proper add-on for toolkit based apps.
Reviewers welcome... ;-)
Don't forget, Venkman is already built into SeaMonkey. This would give you at least some "nightlies" for trunk testing...
Posted by: Standard8 at September 1, 2007 5:01 AM