Debugging

  • Revision slug: Debugging
  • Revision title: Debugging
  • Revision id: 56344
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment add link to debugging OpenGL article; 36 words added

Revision Content

Debugging a project as large as Mozilla can be a daunting task.  Fortunately, over the years, Mozilla developers have come up with not just technologies and features to help you debug code, but have devised tips and techniques that can help too.  Also available are assorted tools that you can use when debugging.

 

Documentation topics

Debugging topics

Debugging memory leaks
Learn about tools and techniques that will help you debug memory leaks.
Building Firefox with debug symbols
How to build Firefox with debug symbols enabled, to help with debugging.
Debugging a hang on Mac OS X
Helpful tips for debugging hangs on Mac OS X.
Remote debugging
Sometimes useful if a developer can't reproduce your crash.
Replay debugging Firefox with VMWare Workstation
How to setup record and replay debugging on Firefox, to help debug intermittent mochitest failures.
Debugging OpenGL {{ gecko_minversion_inline("2.0") }}
If you're working on code that involves OpenGL calls, and need to debug it, you can turn on a special OpenGL debugging mode.

Frequently asked questions

Debugging Mozilla on Windows FAQ
Questions (and answers) about debugging Mozilla on Windows.
Debugging Mozilla on Mac OS X
Questions (and answers) about debugging Mozilla on Mac OS X.
Debugging Mozilla with gdb
gdb is our primary debugger on Mac and Linux.
Debugging Mozilla with valgrind
valgrind is a memory debugger for Mac and Linux.  It is slow, but good for tracking down difficult memory safety bugs.

Debugging specific technologies

Debugging JavaScript code
How to debug JavaScript code, with a focus on debugging code in the Mozilla project itself.
Debugging a XULRunner application
Tips and suggestions that will help you debug your XULRunner based application.
Debugging frame reflow
Learn how to debug frame reflow.
Debugging table reflow
Learn how to debug table reflow.

Debugging tools

Tools
Assorted tools that will help you debug your code or web site.
Download a debug build
Recent automatically compiled debug builds are available. Note that these are replaced frequently by our tinderboxes. The debug builds have "-debug" at the end of their file names.

 

 {{ languages( { "zh-cn": "cn/%e8%b0%83%e8%af%95", "ja": "ja/Debugging" } ) }}

Revision Source

<p>Debugging a project as large as Mozilla can be a daunting task.  Fortunately, over the years, Mozilla developers have come up with not just technologies and features to help you debug code, but have devised tips and techniques that can help too.  Also available are assorted tools that you can use when debugging.</p>
<p> </p>
<table class="mainpage-table"> <tbody> <tr> <td colspan="2"> <h2>Documentation topics</h2> </td> </tr> <tr> <td width="50%"> <h3>Debugging topics</h3> <dl> <dt><a class="internal" href="/en/Debugging_memory_leaks" title="En/Debugging memory leaks">Debugging memory leaks</a></dt> <dd>Learn about tools and techniques that will help you debug memory leaks.</dd> <dt><a class="internal" href="/en/Building_Firefox_with_Debug_Symbols" title="En/Building Firefox with Debug Symbols">Building Firefox with debug symbols</a></dt> <dd>How to build Firefox with debug symbols enabled, to help with debugging.</dd> <dt><a class="internal" href="/en/Debugging_a_hang_on_OS_X" title="En/Debugging a hang on OS X">Debugging a hang on Mac OS X</a></dt> <dd>Helpful tips for debugging hangs on Mac OS X.</dd> <dt><a href="/en/Remote_debugging" title="en/Remote_debugging">Remote debugging</a></dt> <dd>Sometimes useful if a developer can't reproduce your crash.</dd> <dt><a href="/En/Debugging/Record_and_Replay_Debugging_Firefox" title="En/Debugging/Record and Replay Debugging Firefox">Replay debugging Firefox with VMWare Workstation</a></dt> <dd>How to setup record and replay debugging on Firefox, to help debug intermittent mochitest failures.</dd> <dt><a href="/en/Debugging/Debugging_OpenGL" title="en/Debugging/Debugging OpenGL">Debugging OpenGL</a> {{ gecko_minversion_inline("2.0") }}</dt> <dd>If you're working on code that involves OpenGL calls, and need to debug it, you can turn on a special OpenGL debugging mode.</dd> </dl> <dl> <h3>Frequently asked questions</h3> <dt><a class="internal" href="/en/Debugging_Mozilla_on_Windows_FAQ" title="En/Debugging Mozilla on Windows FAQ">Debugging Mozilla on Windows FAQ</a></dt> <dd>Questions (and answers) about debugging Mozilla on Windows.</dd> <dt><a class="internal" href="/en/Debugging_on_Mac_OS_X" title="En/Debugging on Mac OS X">Debugging Mozilla on Mac OS X</a></dt> <dd>Questions (and answers) about debugging Mozilla on Mac OS X.</dd> <dt><a class="internal" href="/en/Debugging_Mozilla_with_gdb" title="En/Debugging Mozilla on Linux FAQ">Debugging Mozilla with gdb</a></dt> <dd>gdb is our primary debugger on Mac and Linux.</dd> </dl> <dl> <dt><a class="internal" href="/en/Debugging_Mozilla_with_Valgrind" title="en/Debugging Mozilla with valgrind">Debugging Mozilla with valgrind</a></dt> <dd>valgrind is a memory debugger for Mac and Linux.  It is slow, but good for tracking down difficult memory safety bugs.</dd> </dl> </td> <td width="50%"> <dl> <h3>Debugging specific technologies</h3> <dt><a class="internal" href="/en/Debugging_JavaScript" title="En/Debugging JavaScript">Debugging JavaScript code</a></dt> <dd>How to debug JavaScript code, with a focus on debugging code in the Mozilla project itself.</dd> <dt><a class="internal" href="/en/Debugging_a_XULRunner_Application" title="En/Debugging a XULRunner Application">Debugging a XULRunner application</a></dt> <dd>Tips and suggestions that will help you debug your <a class="internal" href="/en/XULRunner" title="En/XULRunner">XULRunner</a> based application.</dd> <dt><a class="internal" href="/en/Debugging_Frame_Reflow" title="En/Debugging Frame Reflow">Debugging frame reflow</a></dt> <dd>Learn how to debug frame reflow.</dd> <dt><a class="internal" href="/en/Debugging_Table_Reflow" title="En/Debugging Table Reflow">Debugging table reflow</a></dt> <dd>Learn how to debug table reflow.</dd> </dl> <h3>Debugging tools</h3> <dl> <dt><a class="internal" href="/en/Tools" title="En/Tools">Tools</a></dt> <dd>Assorted tools that will help you debug your code or web site.</dd> <dt><a class=" external" href="http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/" title="http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/">Download a debug build</a></dt> <dd>Recent automatically compiled debug builds are available. Note that these are replaced frequently by our tinderboxes. The debug builds have "-debug" at the end of their file names.</dd> </dl> </td> </tr> </tbody>
</table>
<p> </p>
<p> {{ languages( { "zh-cn": "cn/%e8%b0%83%e8%af%95", "ja": "ja/Debugging" } ) }}</p>
Revert to this revision