HOW TO SETUP VISUAL STUDIO 2005 TO USE THE MICROSOFT SYMBOL SERVER

One of the first things you will want to do after installing visual studio is to set it up to automatically pull down the correct symbols for system components when debugging. You do this by configuring Visual Studio to use the Microsoft Symbol Sever.

In VS 2005, do the following:

  1. Open Visual Studio. Goto Tools->Options
  2. Expand the “Debugging“ node
  3. Click on the “Symbols“ node under “Debugging“
  4. Click on the icon that looks like the new folder icon to add a new.pdb location
  5. Type the following for the location “smysrv*symsrv.dll*c:\symbols*http://msdl.microsoft.com/downloads/symbols“

Archives

  • March, 2006 (3)
  • January, 2006 (3)
  • December, 2005 (7)
  1. “smysrv*symsrv.dll*c:\symbols*http://msdl.microsoft.com/downloads/symbols“
  2. In the Cache symbols from symbol servers to this directory, enter the local path you used in step 5. In this case “c:\symbols“
  3. Click Ok.

To test it out, try attaching to some windows process like iexplore.exe (if you have IE running). Goto debug->windows->modules. You should now see that symbols are loaded for all the system dlls and iexplore.exe. You can also open the local path used in step 5 and you should see folders for all the dlls that have been debugged so far.

Happy Debugging!

This article is part of the GWB Archives. Original Author: gwbarchive

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.