[Vimperator] How to debug firefox extensions?

31d1 31d1 at 31d1.com
Wed Apr 25 06:23:32 PDT 2007


I think the problem is Macs do something to the jar file. If i go to the
.jar file in version 0.3 and rename to zip, unzip it, zip it back up, and
rename to .jar - the extension breaks as described above. Not sure what
exactly is the culprit.

I ended up grabbing a little utility called Jar Inspector, that lets you
open and edit .jar files in place, to hack around in my version 0.3 but I
don't think it would help for putting the CVS build together.

But anyway, this is 99.9% likely to be a Mac problem and not a vimperator
problem.

On 4/25/07, Martin Stubenschrott <stubenschrott at gmx.net> wrote:
>
> On Tue, Apr 24, 2007 at 10:30:05PM -0600, Lee Hinman wrote:
> > Looks like Vimperator still doesn't work past version 0.3 on Mac, does
> > anyone know how I would go about debugging the extension? I haven't ever
> > debugged an extension before.
>
> Debugging extensions really is a lot paint unfortunatly :(
> I do it by first passing all changed files to
> http://www.javascriptlint.com/online_lint.php
>
> Then if this still doesn't give me an syntax error (warnings are fine),
> you really must comment out code piece by piece, and see when it works.
>
> Of course there are javascript debuggers, but they never worked really
> good for me.
>
> > When firefox loads, the top menu and navigation bar is shown, the bar on
> > the bottom is 10 times as large as it should be and no Vimperator
> > commands/keys work at all.
>
> That's a clear sign, the firefox doesn't like the extenstion. When
> updating to the CVS version, did you first uninstall the old 0.3
> version?
> Because we changed the vimperator-guid, there would show up 2
> vimperators in the :addons list.
>
> I am sorry for the inconvienience, I really don't know what could have
> caused this problem on Mac :( But I would be delighted to see the cause
> of the problem and fix it.
>
> --
> Martin
> _______________________________________________
> Vimperator mailing list
> Vimperator at mozdev.mozdev.org
> http://www.mozdev.org/mailman/listinfo/vimperator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/vimperator/attachments/20070425/d9da2791/attachment.html 


More information about the Vimperator mailing list