Visual Studio debugger - source search directory

后端 未结 2 1305
南旧
南旧 2021-01-20 01:09

I have a crash dump (minidump, mdmp format) for an executable (native x86 code) compiled on a different computer. I have the pdb + exe corresponding to the crash dump, they

相关标签:
2条回答
  • 2021-01-20 01:38

    I have found one way, not very intuitive, but it works:

    • create a new Visual C++ project and solution (it may be created anywhere, but a location next to the mdmp file seems convenient)
    • or use a Visual C++ project and solution you normally use to build the executable
    • set up source location in Solution (Right click) > Common Properties > Debug Source Files > Directories containing source code
    • open the crash dump using File > Open > File > select Dump Files as a filter

    Note: crash dump analysis guides on the internet can be misleading when they are not recent enough, as dump files are no longer opened as projects since 2010, they are opened as files instead. See a note by R Nitzel in the MSDN Crash Dump Analysis article.

    0 讨论(0)
  • 2021-01-20 01:49

    You should be able to specify the directories containing the source code with:
    Solution (Right click) > Common Properties > Debug Source Files > Directories containing source code

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