By default, a release build of Firefox will not generate debug symbols suitable for debugging or post-processing into the breakpad symbol format. Use the following mozconfig settings to do a build with symbols:
Building Firefox with symbols
There is a single configure option to enable building with symbols on all platforms. This is enabled by default so unless you have explcitly disabled it your build you should include symbols.
This can optionally take an argument for the type of symbols that need to be produced (like "-g3"). By default it uses "-g" on Linux and MacOS. This value takes precedence over the flags set in
Note that this will override the values provided for
Breakpad symbol files
After the build is complete, run the following command to generate an archive of Breakpad symbol files:
The tinderbox uses an additional
uploadsymbols target to upload symbols to a socorro server. See https://dxr.mozilla.org/mozilla/source/toolkit/crashreporter/tools/upload_symbols.sh for more information about the environment variables used by this target.
If you use
make package to package your build, symbols will be stripped. If you want to keep the symbols in the patches, you need to add this to your mozconfig: