Is there a switch on msvc6 and/or msvc.net that will allow me to see the translation unit. Im having to debug macro intensive code and i want to see what the compiler sees after preprocessing. Does msvc allow this?
Printable View
Is there a switch on msvc6 and/or msvc.net that will allow me to see the translation unit. Im having to debug macro intensive code and i want to see what the compiler sees after preprocessing. Does msvc allow this?
In MSVC.NET ( aka 7 ) or 2003 ( aka 8 ) you have a switch somewhere in the options that saves the preprocessed files as .i files before compiling... but I don't have my version on this PC, I'll have a look later at work.
The flag is /P. It saves the translation unit as a .i file with the same name as the source file.
Project Properties -> C++ -> Preprocessor -> Generate Preprocessed File -> Yes