Re: Exception: Unable to get jsdIDebuggerService.flags in FF 4.0?
coupon deal <[email protected]> Tue, 5 Apr 2011 08:59:41 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <50f679e6-491d-467c-8aa9-89dd93f20293@p16g2000yqb.googlegroups.com> |
When I put the flag setters into the callback, it works. Thanks! On Apr 4, 6:24=A0pm, John J Barton <[email protected]> wrote: > coupon deal wrote: > > Hello, > > > I would greatly appreciate if anyone here could help me. > > > Normally, the jsdIDebuggerService should have a "flags" attribute. > > Developers can either get it or set it. And I have been successfully > > doing so prior to 3.6. > > > Roughly, my code looks like: > > var jsdService =3D Cc["@mozilla.org/js/jsd/debugger-service; > > 1"].getService(Ci.jsdIDebuggerService); > > jsdService.asyncOn(........); > > Here's a hint^^^^^^^ > > > jsdService.flags |=3D Ci.jsdIDebuggerService.COLLECT_PROFILE_DATA; > > At this point jsdService is not on, so the flags... > > > ...... > > > Although it works in 3.6 or earlier versions, the last line of the > > code above doesn't work in FF 4.0. > > > What it says is a "NOT_AVAILABLE" exception: > > > [Exception... "Component returned failure code: 0x80040111 > > (NS_ERROR_NOT_AVAILABLE) [jsdIDebuggerService.flags]" > > nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" =A0] > > ... are not a available > > > Could any one help me answer: How to set the debugging flags in FF > > 4.0? > > Set the flags in the call back from the asyncOn(). > > jjb