1Using The Mozilla Source Server 2=============================== 3 4+--------------------------------------------------------------------+ 5| This page is an import from MDN and the contents might be outdated | 6+--------------------------------------------------------------------+ 7 8Using the Mozilla source server is now even more feature-packed. The 9nightly debug builds are now also Source Indexed so that by following a 10couple of simple steps you can also have the source code served to you 11for debugging without a local build 12 13What you'll need 14---------------- 15 16- `WinDbg <https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/>`__ 17 or Visual Studio (Note: express editions will not work, but WinDbg is 18 a free download) 19- A nightly build that was created after April 15, 2008; go to the 20 `/pub/firefox/nightly/latest-mozilla-central/ <https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/>`__ 21 folder and grab the installer 22 23Set up symbols 24-------------- 25 26Follow the instructions for :ref:`Using the Mozilla symbol 27server <Using The Mozilla Symbol Server>`. Once 28the symbol path is set you must now enable Source Server. 29 30Using the source server in WinDbg 31--------------------------------- 32 33In the WinDbg command line, type ``.srcfix`` and hit enter. This enables 34source server support. 35 36.. image:: img/windbg-srcfix.png 37 38 39Using the source server in Visual Studio 40---------------------------------------- 41 42Source server support does not work correctly out of the 43box in Visual Studio 2005. If you install WinDBG, and copy srcsrv.dll 44from the WinDBG install dir to the Visual Studio install dir 45(replacing the existing copy) it will work. 46 47Enable source server support under Tools -> Options. Also, disable 48(uncheck) the box that says "Require source files to exactly match the 49original version". 50 51.. image:: img/enableSourceServer.png 52