Originally posted by lbxxy
There are two option "release" and "debug" in project option window. For source-level debugging , I want to add "source-debug" , which can add DEBUGTYPE:CV option to link.
Answer from Donkey
If you don't mind losing the default debug option you can edit the MASM.INI file and change the link command that is used by default for the debug option. Line 13 in each of the project types is the debug link command line:
13=5,O,$B.EXE /FILEALIGN:512 /SUBSYSTEM:WINDOWS /DEBUG /VERSION:4.0 /LIBPATH:"$L",3,4
As you can see mine has been modified with FILEALIGN:512 because of the version of Link that I use.