How to reproduce the process of searching pdb file.

Aleksandr Kazakov 1 Reputation point
2022-04-19T05:55:37.357+00:00

I have a problem that, for some reason, dbghelp cannot find pdb file for module, so after MinidumpWriteDump function minidump does not contains information about symbols for main module. How can I reproduce the process of searching pdb file for module by MinidumpWriteDump function? Now I am trying to use SymLoadModuleEx function with SymSetOptions(SYMOPT_DEBUG);, but I am not sure if this is what MinidumpWriteDump does.

Windows development | Windows API - Win32
Developer technologies | C++
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2022-04-19T07:26:48.15+00:00

    According to Getting the Symbols You Need,

    If you have built a DLL or an executable file on your computer, by default the linker places the full path and file name of the associated PDB file inside the DLL or the executable file. When you debug, the debugger first checks to see if the symbol file exists in the location that is specified inside the DLL or the executable file.

    You can check the release configuration and the MiniDumpWriteDump parameter compared to Writing a Minidump with Code.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.