How to reproduce the process of searching pdb file.

Aleksandr Kazakov 1 Reputation point

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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,488 questions
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,604 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,066 Reputation points Microsoft Vendor

    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.