Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2005 13:01:44 -0500
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Greg Lewis" <glewis@eyesbeyond.com>
Cc:        Mike Hunter <mhunter@ack.berkeley.edu>, freebsd-ports@freebsd.org
Subject:   Re: Java (jdk1.5) woes with firefox (1.0.6) and opera (8.5)
Message-ID:  <op.sxxgc61f9aq2h7@mezz.mezzweb.com>
In-Reply-To: <20050930175230.GB10169@misty.eyesbeyond.com>
References:  <20050928190349.GA72194@malcolm.berkeley.edu> <20050928194514.GA20631@misty.eyesbeyond.com> <20050930171613.GC26743@malcolm.berkeley.edu> <20050930175230.GB10169@misty.eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 30 Sep 2005 12:52:30 -0500, Greg Lewis <glewis@eyesbeyond.com>  
wrote:

> Hi Mike,
>
> On Fri, Sep 30, 2005 at 10:16:13AM -0700, Mike Hunter wrote:
>> On Sep 28, "Greg Lewis" wrote:
>> > On Wed, Sep 28, 2005 at 12:03:49PM -0700, Mike Hunter wrote:

<snip>
>> > > Last but not least, a beginner question:  How do you run firefox in  
>> gdb?
>> > > I found firefox-bin, but it won't launch without the environment  
>> grooming
>> > > that its scriptup scripts perform, and I can't run gdb on the  
>> startup
>> > > script :(
>> >
>> > Determine the environment variables you need to set from the start up
>> > script.  Set them.  Run gdb on firefox-bin.
>>
>> I was afraid of that :(  I saw the other suggestion about attaching gdb
>> after launch, but in the past that's always crashed the application for
>> me...maybe I'll give it another try when.
>
> Its not as hard as it sounds, you can probably get the information by
> simply inserting a printenv in the appropriate place in the script.

You need to recompile Firefox with 'WITH_DEBUG=yes', after that run  
'firefox --debug' or just 'firefox -debug', I don't remember but that  
should get you in gdb by automatic when Firefox crashes.

BTW: Be sure to have those in your make.conf like this.

=========================
CFLAGS=    -O -g -pipe
STRIP=
=========================

Cheers,
Mezz


-- 
mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.sxxgc61f9aq2h7>