Thanks for your quick response.
Firefox 19.0.2
Firebug 1.11.2
OS -Window 7
Cu.reportError(installPath + ", " + "prefs.js) in firebugStartup() method
(in bootstrap.js) gives me two result in first shot.
1. undefined, pref.js
2. [xpconnect wrapped nsIFile], prefs.js
First one - I think firebug is not loaded yet, and that's why installPath
is undefined.
second one gives me correct behavior and no issue with that.
After that I tried again with this but getting only second result all the
time.
Now, First Initialization of Module/Panel doesn't give trace messages. I
always need to swap tab to get those messages.
function isFirebugLoaded()
{
try
{
// Import Firebug modules into this scope. It fails if Firebug
isn't loaded yet.
Cu.import("resource://firebug/loader.js");
Cu.import("resource://firebug/prefLoader.js");
return true;
}
catch (e)
{
}
return true; *// Why this shouldn't be `return false *`
}
Thanks.
On Friday, March 22, 2013 8:04:03 PM UTC+5:30, Jan Honza Odvarko wrote:
>
> What version of Firefox, Firebug, OS?
>
> I tried:
> Firebug 1.11.2
> Firefox 22
> Win Vista
> and it seems to be working for me
>
> I can see the logs coming from HelloBootAMD in the tracing console.
>
> > I am not getting default `FBTrace.DBG_EXTNAME` flag.
> Note that the example uses: FBTrace.DBG_HELLOBOOTAMD
>
> The exception: sounds like the path to a pref file is not valid.
>
> You can try to put Cu.reportError(path.path + ", " + fileName); into
> the
> loadDefaultPrefs and check the Error console to see, what's the path
>
> Honza
>
> On Mar 22, 5:37 am, JD <[email protected]> wrote:
> > Hi,
> > I don't know if it is configuration issue or not. But, I am getting
> > following error while loading default preference using bootstrap + AMD
> > firebug extension. (for which I used HelloBootAMD skeleton from github
> > extension-examples).
> >
> > Error: [Exception... "Component returned failure code: 0x80004003
> > (NS_ERROR_INVALID_POINTER) [nsIIOService2.newFileURI]" nsresult:
> > "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame ::
> > resource://firebug/prefLoader.js :: loadDefaultPrefs :: line 31" data:
> no]
> > Source File: resource://firebug/prefLoader.js
> > Line: 44
> >
> > I am not getting default `FBTrace.DBG_EXTNAME` flag.
> > Can you please suggest, what I am doing wrong? .
> >
> > Thanks.
>
--
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug
---
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.