如何在命令行中使用调试输出启动 Firefox?

Que*_*ner 5 command-line firefox debugging

Firefox 时不时地冻结,我想知道为什么。

我以为我可以通过使用该-g选项启动 Firefox 来获得一些调试输出,但它只是出现某种提示然后停止。

如何获得调试输出以便我可以诊断 Firefox 的问题?

这是我目前得到的:

$ firefox -g
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/lib/firefox-7.0.1/firefox...(no debugging symbols found)...done.
(gdb) 
Run Code Online (Sandbox Code Playgroud)

一旦到达(gdb),它就会停止,而 Firefox 永远不会启动。

enz*_*tib 6

您应该rungdb提示符下键入,以便firefox继续运行,并查看崩溃时留下的任何消息。