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 are located next to the crashdump, and debugger recognizes them correctly. The pdb references sources on a path which is not available on my computers (say E:\Project
). When I first opened the crash dump, the debugger has asked me for the source location. I pointed it to E:\B\Project
on my computer, however once the source window appeared, I realized my choice was wrong (the sources were for a different product branch). I would like to point the debugger to a correct location E:\D\Project
, however the debugger is no longer asking me. There is no solution, project or opt file for the crashdump created. I have searched the registry, but I did not find E:\B\Project
anywhere.
How can one set/change source directories for Visual Studio debugger?
First, select DevTools > Settings > Experiments > Open source files in Visual Studio Code, and then re-start DevTools.
Launch configurations. To run or debug a simple app in VS Code, select Run and Debug on the Debug start view or press F5 and VS Code will try to run your currently active file.
I have found one way, not very intuitive, but it works:
Solution
(Right click) > Common Properties
> Debug Source Files
> Directories containing source code
File
> Open
> File
> select Dump Files
as a filterNote: 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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With