Difference between revisions of "Mozilla Source and Symbol Server"
(rewrite) |
|||
Line 1: | Line 1: | ||
− | + | = Overview = | |
Mozilla has a [http://developer.mozilla.org/en/docs/Using_the_Mozilla_symbol_server symbol server] for Windows builds that allows developers or users to debug nightly and release builds without having to ship debug symbols along with the builds. This can be very useful when a user has a problem that developers can't reproduce, or when you hit a crash or hang during your normal browsing, not using a debug build. | Mozilla has a [http://developer.mozilla.org/en/docs/Using_the_Mozilla_symbol_server symbol server] for Windows builds that allows developers or users to debug nightly and release builds without having to ship debug symbols along with the builds. This can be very useful when a user has a problem that developers can't reproduce, or when you hit a crash or hang during your normal browsing, not using a debug build. | ||
Line 14: | Line 14: | ||
** [http://landfill.mozilla.org/bonsai-test/bonsai/cvsblame.cgi?file=mozilla/makefile.win&rev=&root=%2Fhome%2Fcvsroot&raw=1 Example Usage] | ** [http://landfill.mozilla.org/bonsai-test/bonsai/cvsblame.cgi?file=mozilla/makefile.win&rev=&root=%2Fhome%2Fcvsroot&raw=1 Example Usage] | ||
* WinDbg comes with a perl script for doing some of this work, probably at C:\Program Files\Debugging Tools for Windows\sdk\srcsrv\cv2http.pl | * WinDbg comes with a perl script for doing some of this work, probably at C:\Program Files\Debugging Tools for Windows\sdk\srcsrv\cv2http.pl | ||
− | * The symbolstore.py script in the Mozilla tree that builds the Breakpad symbol store [http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/toolkit/ | + | * The symbolstore.py script in the Mozilla tree that builds the Breakpad symbol store [http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/toolkit/crashreporter/tools/symbolstore.py&rev=1.6&root=/cvsroot&mark=64-77#64 already has support for grabbing CVS revision numbers] |
Revision as of 09:47, 10 September 2007
Overview
Mozilla has a symbol server for Windows builds that allows developers or users to debug nightly and release builds without having to ship debug symbols along with the builds. This can be very useful when a user has a problem that developers can't reproduce, or when you hit a crash or hang during your normal browsing, not using a debug build.
While this is very useful, it doesn't provide source-level debugging. You can see function names and call stacks, but not the source at the location, which makes stepping through code very difficult. Luckily, Microsoft does provide a means to add source info to debug symbols, called a source server. Your mission is to sort through the Microsoft documentation and figure out how to add this to the existing Mozilla symbol server. The reward is having hundreds of developers and untold numbers of end users thank you for making life easier, and difficult crashes easier to fix.
Additional Resources
- MSDN articles on source server:
- Mozilla's symbol server: http://benjamin.smedbergs.us/blog/2007-06-11/debugging-official-builds-or-how-cool-is-the-mozilla-symbol-server/
- bonsai-test and bonsai-dev on landfill.mozilla.org support a "raw=1" parameter to get back a plain text version of a file at a specific revision.
- WinDbg comes with a perl script for doing some of this work, probably at C:\Program Files\Debugging Tools for Windows\sdk\srcsrv\cv2http.pl
- The symbolstore.py script in the Mozilla tree that builds the Breakpad symbol store already has support for grabbing CVS revision numbers