I am trying to generate a minimal Minidump using MiniDumpWriteDump where I can retroactively attach symbols with a pdb. Currently this works using MiniDumpWithFullMemory but produces a very large dump file.
Producing the dump with MiniDumpNormal produces a small file and gives a stack trace with offsets, but I cannot get Visual Studio or WinDbg to load the symbols. Visual studio just tells me that
Binary was not built with debug information
WinDbg tells me:
ERROR: Symbol file could not be found. Defaulted to export symbols for app.exe.
I have tried several combinations of flags but cannot load symbols without using MiniDumpWithFullMemory. What are the set of flags to generate the smallest possible dump which can resolve symbols for the stack trace?
The executable was built with debug information (/Zi /DEBUG), attaching a debugger to the running process loads the symbols, attaching a debugger to the crashed process (on WER triggering) loads the symbols, and generating the dump with MiniDumpWithFullMemory also loads the symbols, but other dump types do not load the symbols.