OK.  I've put my code up on github:
http://github.com/robhudson/djangobug/blob/6acd3a6dbdb806950565a6464650f340585ebaab/django-bug/chrome/content/DjangoBug.js#L12

I've gotten it to show something in the trace output but not quite
what I was hoping for.  I was imagining something like this article
where is has an "Object" tab that displays properties and methods
available to the object.  Right now all I get is [Object object] or
something similar with no information.
http://www.softwareishard.com/blog/firebug/tracing-console-for-firebug/

This is with Firebug 1.3X-something.  Is the "Object" tab a 1.4 feature?

Basically what I'm trying to get at is what the "context" and "file"
objects look like so I know how to process them to do what I want to
do.

Thanks for the help,
Rob

On Thu, Feb 12, 2009 at 8:25 AM, John J Barton
<johnjbar...@johnjbarton.com> wrote:
>
> Ok so I have a simple fix for you: delete those lines ;-)
>
> The ns function runs very early so you don't want to have any
> executable code with dependency on Firebug state in there.
>
> FBTrace is already defined in and set at the right time, don't
> redefine it.
>
> I don't know what the pref() call is for, but you need to set the
> default value of prefs in a file in your extension under the /
> defaults/ subdir. I think it can have any name .js.
>
> jjb
>
> On Feb 11, 10:35 pm, Rob Hudson <treborhud...@gmail.com> wrote:
>> I tried removing my extension, setting always open trace console to
>> true, setting ERRORS and it worked.  Then when I installed my
>> extension Firebug is dead again.
>>
>> If I turn off these 2 lines:
>>
>>                 pref("extensions.firebug.DBG_MYLOGNAME", false);
>>                 var FBTrace = 
>> Components.classes["@joehewitt.com/firebug-trace-
>> service;1"]
>>                         .getService(Components.interfaces.nsISupports)
>>                         .wrappedJSObject.getTracer("extensions.firebug");
>>
>> My Firebug works again.
>>
>> FYI: The above 2 lines come right after the standard extension
>> opening:
>>
>> FBL.ns(function() {
>>         with (FBL) {
>>
>> Thanks,
>> Rob
>>
>> On Feb 11, 10:24 pm, John J Barton <johnjbar...@johnjbarton.com>
>> wrote:
>>
>> > The command line error is not related to firebug (does not help or
>> > hurt).
>>
>> > Use about:config to set
>> > extensions.firebug.alwaysOpenTraceConsole
>> > true, then restart Firefox.
>>
>> > In the trace window, options, set ERRORS. then return to Log panel and
>> > try to open Firebug.
>>
>> > jjb
>>
>> > On Feb 11, 9:15 pm, Rob Hudson <treborhud...@gmail.com> wrote:
>>
>> > > Thanks for the pointer.
>>
>> > > I installed one of the X releases and followed the tutorial (except I
>> > > used Firebug's preference domain) and now when I restart Firefox, the
>> > > Firebug icon in the status bar is grey and I cannot open Firebug.
>>
>> > > I must be doing something wrong.
>>
>> > > If I view the error console in Firefox, I see this:
>>
>> > > Error: Warning: unrecognized command line flag -foreground
>>
>> > > Source File: 
>> > > file:///Applications/Firefox.app/Contents/MacOS/components/nsBrowserContent
>> > >  Handler.js
>> > > Line: 713
>>
>> > > Any ideas?
>>
>> > > Thanks,
>> > > Rob
>>
>> > > On Feb 11, 4:42 am, Jan Odvarko <odva...@gmail.com> wrote:
>>
>> > > > Not sure if I understand the question correctly, but if you want to
>> > > > log debug information from your Firebug extension, you should use
>> > > > "Firebug Tracing Console" (FBTrace). Just install version with tracing
>> > > > enabled from here:http://getfirebug.com/releases/firebug/1.4X/
>>
>> > > > and see more info 
>> > > > here:http://www.softwareishard.com/blog/firebug/tracing-console-for-firebug/
>>
>> > > > Honza
>>
>> > > > On 11 Ún, 06:15, Rob Hudson <treborhud...@gmail.com> wrote:
>>
>> > > > > Hi,
>>
>> > > > > I'm overriding an onLoad method which gets passed context and file.
>> > > > > If I'm not very familiar with what these are, how can I introspect
>> > > > > them?  Is Firebug's console logging available from within another
>> > > > > panel or model?
>>
>> > > > > Thanks,
>> > > > > Rob
> >
>



-- 
-Rob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to firebug@googlegroups.com
To unsubscribe from this group, send email to 
firebug+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to