I am using cl.exe
C++ compiler in Visual Studio 2019
from the command line. But, I am unable to set the required flag to produce a .pdb file to debug in a separate debugger. I tried /DEBUG:FULL /FI /Fd
, etc., as read in several posts, but no .pdb file is generated.
I also tried to configure the IDE as per different instructions, but still, no .pdb file is created.
What is the command-line flag to be used to produce a .pdb
file?
cl.exe myprogram.cpp /DEBUG:FULL /Fdmyprogram.pdb /Famyprogram.asm /Femyprogram.exe
cl
from the command line? Why not the IDE or if you need to use the command line then MSBuild or CMake ? – Forefront