Help needed debugging my extension

14 views
Skip to first unread message

Jhonte

unread,
Sep 27, 2011, 1:39:47 PM9/27/11
to Firebug
Hello!

I can't seem to run my extension this version of FireBug.

In my naive world I tried this, where the first alert fires ok!
alert("this works");
FBL.ns(function() { with (FBL) {
alert("dont end up here");

Has something changed in the way you set up an extension?

If you have some great tips or tutorial that explains how to easily
debug an add on I'm very interested!
I have followed some guides before and changed a lot of
debugvariables. But I don't really know where the error in my
extension is shown :(







tho...@mr-andersen.no

unread,
Oct 5, 2011, 7:12:52 AM10/5/11
to Firebug
Hi

You'll need to declare the initialize method and put the trace in the
method body

Read this post: http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-hello-world-part-i/

Here is a good starting point for creating Firebug extensions:
http://getfirebug.com/wiki/index.php/Firebug_Internals

Thomas

Sebo

unread,
Oct 5, 2011, 7:58:09 AM10/5/11
to fir...@googlegroups.com
I want to note explicitly, that you should use FBTrace instead of alert()s. With it you get more info and it's less annoying. ;-)
Also the API changes of 1.8 may be important for you. And there is even an example for a restartless extension.

Besides all this the Firebug wiki can give you some more information.

Sebastian
Reply all
Reply to author
Forward
0 new messages