No, you don't redefine fbs functions, but rather you supply a
'debugger' object that implements call back functions for the debug
events.
See debugger.js
....fbs.registerClient(this);   // once per XUL window, tells you when
jsd turns on/off
..... fbs.registerDebugger(this); // when you are ready for callbacks

jjb

On Mar 16, 11:11 am, Joe <[email protected]> wrote:
> OK, Thanks for reply
> I try to add fsb to my extension:
>
> var fbs = Components.classes["@joehewitt.com/firebug;1"]
>   .getService().wrappedJSObject;
>
> fbs.onError: function(frame, error) {
>   dump('error');
>
> }
>
> Is it ok to get error ? Am I missing something, for example how to
> initialize,...
>
> On Mar 16, 5:25 pm, johnjbarton <[email protected]> wrote:
>
> > Sure its possible, that's what Firebug does. If you look at the code
> > for 'debugger.js' you can control firebug-service the way it does.
>
> > jjb
>
> > On Mar 16, 2:21 am, Joe <[email protected]> wrote:
>
> > > Hi
>
> > > Is it possible to add firebug-service.js to chrome://component folder
> > > of extension and use it as a debugger
>
> > > I want to stop some code at "debugger;" keyword then put a button to
> > > resume it
>
> > > Any help would be appreciated- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to