Analyzing Crash dumps in Visual Studio

后端 未结 1 1210
一生所求
一生所求 2020-12-10 03:50

I have a *.dmp (dump) file of my crashed application. Now, I want to analyze the crashed process on a different machine. That is, the app crashed on one machine

相关标签:
1条回答
  • 2020-12-10 04:03

    No, you definitely need the .pdb files to get decent stack traces. By far the simplest way is to do this from the machine on which you built the program, the source code and .pdb files will be in the right place.

    Next best thing is to copy the exact same executables into the exact same folder in which it was installed on the failing machine. Copy the .pdb files into that same directory, that's where the debugger looks next if it can't find them in the original build location. Once the debugger lands on a statement with source code and the .pdb wasn't stripped then it will prompt you to give the source code file location.

    Next best thing is Tools + Options, Debugging, Symbols and add the path to the directory that contains the .pdb files.

    In that same dialog, also turn on the Microsoft Symbol Server (http://msdl.microsoft.com/download/symbols). That gets you the symbols for the Windows DLLs and lets you accurately trace back to your own code if the crash occurred in a Windows DLL.

    0 讨论(0)
提交回复
热议问题