Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

debugging firefox extesnion?

2 views
Skip to first unread message

raj

unread,
Nov 28, 2006, 12:47:39 AM11/28/06
to
hi,
I am developing a firefox extension which use third party libraries.I
set up the development environment using this guide
http://developer.mozilla.org/en/docs/Creating_Custom_Firefox_Extensions_with_the_Mozilla_Build_System

It end up with a shared libaray, of the source. Now I need to debug.So
any body knows how to debug the source
Thanks
Rajika

Christian Biesinger

unread,
Nov 28, 2006, 1:19:41 PM11/28/06
to dev-tec...@lists.mozilla.org
raj wrote:
> It end up with a shared libaray, of the source. Now I need to debug.So
> any body knows how to debug the source

Run Firefox in the debugger, and set breakpoints in your source files as
usual... is that the answer you were looking for?


--
All the world's a stage,
And all the men and women merely players:
They have their exits and their entrances;
And one man in his time plays many parts, [...] --W. Shakespeare

danr

unread,
Nov 28, 2006, 11:22:06 PM11/28/06
to

danr

unread,
Nov 28, 2006, 11:27:00 PM11/28/06
to

danr wrote:
> Christian Biesinger wrote:
> > raj wrote:
> > > It end up with a shared libaray, of the source. Now I need to debug.So
> > > any body knows how to debug the source
> >
> > Run Firefox in the debugger, and set breakpoints in your source files as
> > usual... is that the answer you were looking for?
> >
> >Yer but I need to know how to compile the source to end up with a exutable (insted of the shared library) with debug information on(with -g option) ,Am I to chage ./config/autoconf.mk and ./config/rules.mk in the mozilla code base ? If so please tell me how to that ?
Thanks

Christian Biesinger

unread,
Dec 3, 2006, 11:25:36 AM12/3/06
to dev-tec...@lists.mozilla.org
danr wrote:
> Yer but I need to know how to compile the source to end up with a
> exutable (insted of the shared library) with debug information
> on(with -g option) ,Am I to chage ./config/autoconf.mk and
> ./config/rules.mk in the mozilla code base ? If so please tell me how
> to that ?

No, just open the Firefox executable in your debugger and run that. If
you want a more concrete reply, you need to tell us what debugger you
are using.

0 new messages