[Techtalk] debug info: Firefox and Thunderbird?
Conor Daly
c.daly at met.ie
Tue Dec 11 11:21:43 UTC 2007
On Mon, Dec 10, 2007 at 02:04:30PM -0800 or thereabouts, Deborah Gronke Bennett wrote:
>
> I run a stock distribution (that is, I don't build debug versions of
> these programs). Are there any tricks for gathering debug information
> from them? I noticed that Thunderbird has an error console, but it's
> going to disappear when the program crashes. I'm looking for some way to
> dump debug info into a logfile somewhere. Any hints, suggestions, places
> to look for tips?
On my Fedora system, firefox is a bourne shell script which calls
run-mozilla.sh (which is another bourne shell script) which, in turn, calls
firefox-bin which is the binary. Within run-mozilla.sh, there are --debug
options available but these require the use of a debugger. There is a
moz_usage function in there (which doesn't tell much) but no way of calling
it. I've attached a patch for run-mozilla.sh that will add a (-h | --help)
switch to run-mozilla.sh .
Anyway, to use the debugger, you could modify the run-mozilla.sh call within
/usr/lib/firefox/firefox to add the -g switch. Then, of course, you need to
know how to use a debugger (which I don't)...
Conor
--
Conor Daly,
Met Eireann, Glasnevin Hill,
Dublin 9, Ireland
Ph +3531 8064276 Fax +3531 8064247
*********************************************************************************
This e-mail and any files transmitted with it are confidential and intended solely for the addressee. If you have received this email in error please notify the sender.
This e-mail message has also been scanned for the presence of computer viruses.
Ta an riomhphost seo, agus aon chomhad ata nasctha leis, faoi run agus is don te a seoladh chuige amhain e. Ma tharla go bhfuair tu an riomhphost seo tri dhearmad cuir in iul don te a sheol e led' thoil.
Ta an teachtaireacht riomhphoist seo scuabtha le bogearrai frithvireas.
********************************************************************************
NorthBridge Mail Server id e9yrhg43fncvj3974vjenw
-------------- next part --------------
--- ./run-mozilla.sh.cdaly 2007-12-11 11:16:34.000000000 +0000
+++ ./run-mozilla.sh 2007-12-11 11:17:41.000000000 +0000
@@ -261,6 +261,10 @@
moz_debug=1
shift
;;
+ -h | --help)
+ moz_usage
+ exit
+ ;;
-d | --debugger)
moz_debugger=$2;
if [ "${moz_debugger}" != "" ]; then
More information about the Techtalk
mailing list