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

  1. From the Project menu, choose Properties.

  2. From the Property Pages dialog box, Configuration Properties, then choose General, and then select the build type you want.

  3. Choose Configuration Properties, and then choose Build Options.

  4. 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.

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

See Also

Other Resources

Debugging Setup
Shared Build Options
Unique Build Options