Search code examples
c++visual-studiodebuggingcallstackvisual-c++-2005

How to get a full call stack in Visual Studio 2005?


How can I get a full call stack for a c++ application developed with Visual Studio 2005? I would like to have a full call stack including the code in the system libraries.

Do I have to change some settings in Visual Studio, or do I have to install additional software?


Solution

    1. Get debug information for all project dependencies. This is specified under the "Configuration Properties -> C/C++ -> General" section of the project properties.

    2. On the menu, go to "Tools -> Options" then select "Debugging -> Symbols".

    3. Add a new symbol location (the folder icon) that points to Microsoft's free symbol server “symsrvsymsrv.dllc:\symbols*http://msdl.microsoft.com/downloads/symbols

    4. Fill out the "cache symbols" field with some place locally so you don't go to the internet all the time.