Re: Problem with Fbtrace

105 views
Skip to first unread message

Jan Honza Odvarko

unread,
Aug 24, 2012, 2:43:50 AM8/24/12
to Firebug
I think I fixed this problem at
https://github.com/firebug/extension-examples/commit/1fe3c75812ee37a5de7b3319f0ab6e254fed8ab0

Please pull the changes and let me know if it helps.

Thanks!
Honza



On Aug 23, 9:23 pm, First Steps <zilfore...@gmail.com> wrote:
> Hi i got Firefox 14.0.1, Firebug 1.10.2 and fbtrace 1.10https://getfirebug.com/releases/fbtrace/1.10/.
>
> I used  example Jan Odvarko HelloBootAMDhttps://github.com/firebug/extension-examples/tree/master/HelloAMD
>
> Extension works but there is no logs in Fbtrace and in options there is noHELLOBOOTAMD
> .
> So i added fromhttps://getfirebug.com/wiki/index.php/FBTrace
>
> pref("extensions.firebug.DBG_HELLOBOOTAMD", false); with true and false
>
> and into function firebugStartup() in bootstrap.js code:
> Components.utils.import("resource://firebug/firebug-trace-service.js");
> var FBTrace = traceConsoleService.getTracer("extensions.firebug");
>
> Still dont see button in options but if I add into main.js
> FBTrace.sysout("helloBootAMD; HelloBootAMD extension initialize");
> without if (FBTrace.DBG_HELLOBOOTAMD) ot works.
>
> So what I do wrong?
>
> Also my second question. If I disable this example extension it is removed from Firebug instantly but if I enable it again, It is shown after Firefox restart.
> Is it posible to add it instant like when installing?

Jan Honza Odvarko

unread,
Aug 24, 2012, 2:55:02 AM8/24/12
to Firebug
> Also my second question. If I disable this example extension it is removed from Firebug
> instantly but if I enable it again, It is shown after Firefox restart.
> Is it posible to add it instant like when installing?
Yep this should be possible, please create a new issue report
http://code.google.com/p/fbug/issues/list

Honza

On Aug 24, 8:43 am, Jan Honza Odvarko <odva...@gmail.com> wrote:
> I think I fixed this problem athttps://github.com/firebug/extension-examples/commit/1fe3c75812ee37a5...

First Steps

unread,
Aug 24, 2012, 2:26:43 PM8/24/12
to fir...@googlegroups.com

Thank you for quick reply and fix. FbTrace works now.


About second I solved it myself so i dont think it need issue.

In 'myPanel.js' I added variable:
disabled: false,
Inside function 'initialize' in the same function:
disabled = false;
In 'main.js' inside function 'initialize' :
if(Firebug.MyPanel.disabled){
Firebug.registerModule(Firebug.MyModule);
Firebug.registerPanel(Firebug.MyPanel);
Firebug.registerStylesheet("chrome://hellobootamd/skin/hellobootamd.css");
}
and inside function 'shutdown':
Firebug.MyPanel.disabled = true;

And panel hide/show when extension is disbaled/enabled.

First Steps

unread,
Aug 24, 2012, 2:29:12 PM8/24/12
to fir...@googlegroups.com
should be
if(Firebug.MyPanel.disabled){
Firebug.registerModule(
Firebug.MyModule);
Firebug.registerPanel(Firebug.MyPanel);
Firebug.registerStylesheet("chrome://hellobootamd/skin/hellobootamd.css");
Firebug.registerStringBundle("chrome://hellobootamd/locale/hellobootamd.properties");
}
Reply all
Reply to author
Forward
0 new messages