共用方式為


/DEBUGTYPE   (Debugging Format)

OverviewHow Do ILinker Options

These options are available when the /DEBUG (Generate Debug Info) option is used.

Command Line Project Settings Description
/DEBUGTYPE:CV Microsoft Format This option creates Microsoft Format debugging information.
/DEBUGTYPE:COFF COFF Format This option creates Common Object File Format (COFF) debugging information.
/DEBUGTYPE:BOTH Both Formats This option creates both COFF debugging information and Microsoft Format debugging information.

(To find this option in the development environment, click Settings on the Project menu. Then click the Link tab, and click Debug in the Category box.) To use Microsoft Format debugging information, select the Microsoft Format option button under Debug Info. If the Generate Debug Info check box is not selected, this choice is unavailable. On the command line, if /DEBUG is specified, the default type is /DEBUGTYPE:CV; if /DEBUG is not specified, /DEBUGTYPE is ignored.

Some debuggers require COFF debugging information. To use COFF-format debugging information, select the COFF Format option button under Debug Info. If the Generate Debug Info check box is not selected, this choice is unavailable. On the command line, specify /DEBUGTYPE:COFF; if /DEBUG is not specified, /DEBUGTYPE is ignored.

When /DEBUGTYPE:COFF or /DEBUGTYPE:BOTH is set, incremental linking is disabled. The linker must call the CVPACK.EXE tool to process the Microsoft Format debugging information. CVPACK must be in the same directory as LINK or in a directory in the PATH environment variable.