The MSDN says, when use /Z7:
Produces an .obj file containing full symbolic debugging information for use with the debugger. The symbolic debugging information includes the names and types of variables, as well as functions and line numbers. No .pdb file is produced.
Because obj files will be link into exe file finally. So I think the debug info will write into the final building file (exe file).
In this, MSDN says:
It is not possible to create an .exe or .dll that contains debug information. Debug information is always placed in a .pdb file.
After I test it, I found:
whatever /Z7 or /Zi was set, PDB file always get generated.
build with /Z7, and generate a core dump file, use vs open this core dump file, it still need a PDB file to debug.
It seems first msdn doc I refer is outdated.
Can I debugging windows core dump file like linux app which only need a single core dump file? without any additional files like a PDB? Or this is an mission impossible.