Using the Mozilla symbol server
From MDC
The Mozilla project runs a symbol server for trunk Firefox nightly and release builds on Windows. Symbols are available for at least 30 previous days worth of nightly builds, and Firefox releases from 2.0.0.4. This allows debugging of those builds without forcing all users to download large debugging files. The server functions like Microsoft's symbol server so the documentation there can be useful.
The official symbol server URL is http://symbols.mozilla.org/firefox. You cannot visit this URL directly: you must add it to the symbol path of your debugging tool. In the examples below, a local cache directory is used to avoid repeatedly fetching the PDB from the server. Replace C:\Users\bsmedberg\symbols with an appropriate cache directory on your machine.
Contents |
[edit] Using the symbol server in Microsoft Visual C++ 2005+
[edit] Using the symbol server in Windbg
The Windbg symbol path is configured with a string value delimited with asterisk characters. To use only the Mozilla symbol server, add the following entry to your symbol path (note: replace f:\localsymbols\ with a writable directory on your computer):
SRV*f:\localsymbols\*http://symbols.mozilla.org/firefox
Set this string as _NT_SYMBOL_PATH in the environment, using the Windbg menus, or by typing the .sympath command. If you would like to get symbols from Microsoft's symbol server as well, you should list that first (note: replace f:\localsymbols\ with a writable directory on your computer):
SRV*f:\localsymbols\*http://msdl.microsoft.com/download/symbols;SRV*f:\localsymbols\*http://symbols.mozilla.org/firefox
[edit] Downloading symbols using symchk.exe
You can also download the symbols using symchk.exe, part of Microsoft's Debugging Tools for Windows. The command should look like this (again, replace C:\Users\bsmedberg\symbols with an appropriate cache directory on your machine):
C:\Program Files\Mozilla Firefox>c:\progra~1\debugg~1\symchk.exe /r c:\progra~1\mozill~1\* /s SRV*C:\Users\bsmedberg\symbols\*http://symbols.mozilla.org/firefox
Note the \* after the Mozilla directory. The output of this command should be similar to:
SYMCHK: fullsoft.dll FAILED - Image is split correctly, but fullsoft.dbg is missing SYMCHK: qfaservices.dll FAILED - qfaservices.pdb mismatched or not found SYMCHK: talkback.exe FAILED - Built without debugging information. SYMCHK: helper.exe FAILED - Built without debugging information. SYMCHK: FAILED files = 4 SYMCHK: PASSED + IGNORED files = 179
[edit] The source server
In addition to symbols, Mozilla also has a source server, letting you do source-level debugging and inspection on demand.



