Compiler and Linker Options for Debugging (Windows Embedded CE 6.0)
1/5/2010
Platform Builder configures many compiler and linker options that affect debugging during the build process using environment variables. You can set some options from the IDE, or you can set any compiler and linker option from the command line.
To set compiler options for debugging from the IDE
From the Project menu, choose Properties.
From the Property Pages dialog box, Configuration Properties, then choose General, and then select the build type you want.
Choose Configuration Properties, and then choose Build Options.
In the Build Options box, select one or more of the following options.
- Enable Kernel Debugger
Select before building the run-time image to allow the debugger to connect and pass debugging information from the target device to the host device. The kernel debugger requires a KITL or hardware-assisted transport. - Enable KITL
Select to enable KITL as a transport layer for communication between the development workstation and the target device for debugging. - Enable profiling
Select to enable Windows Embedded CE kernel profiling in the run-time image.
- Enable Kernel Debugger
To set compiler options for debugging from the command line
You can specify compiler build options on the command line, in response files, or in the CL environment variable.
The following list shows command-line compiler options that can affect debugging.
- /callcap -Enable callcap profiling
- /EH - Exception Handling Model
- /fastcap - Enable fastcap profiling
- /Zd, /Z7, /Zi, /ZI -Debug Info
- /Zs - Check Syntax Only
The following list shows linker options that can affect debugging.
- /DEBUG
- /INCLUDE
- /PDB