Share via


Kernel Debugger (Compact 7)

3/12/2014

The Platform Builder kernel debugger is a full-featured debugger that you can use to view information about your code, set breakpoints, step through execution, and control debug output messages. The kernel debugger integrates the functionality required to configure a connection to a target device and download a run-time image to the device. After you connect Platform Builder to your device, you interact with the kernel debugger very much as you interact with the Visual Studio application debugger. By using the kernel debugger, you can debug both an OS and an application that is running on the OS.

You enable the kernel debugger in the run-time image by using the run-time image build settings. (For more information, see Set Build Options for Debugging.) When you enable kernel debugging, Platform Builder includes the debugging stub, KdStub, in the run-time image.

In This Section

  • Set Debug Options
    Manage aspects of the debugger, such as configuring build options, debugging display settings, and specifying how exceptions are handled. You can also define a mapping between source code files and program database files (PDBs), and override the list of modules that are used for debugging.
  • Add Debug Messages
    Use debug macros to send debug messages to the output stream based on whether you want these messages to appear in a specific build type.
  • Use Debug Zones
    Use debug zones to selectively turn on and turn off the debugging message output.
  • Breakpoints
    Use breakpoints to pause execution at a certain point in the code.
  • Control Debugger Execution
    Use debugger execution control to start and stop the debugging session, proceed to a specified location in the code, and control how the debugger responds to function execution.
  • Handle Exceptions
    Configure how Platform Builder manages and handles exceptions based on their type.
  • View Debug Information
    View debugging information by using a variety of debugging windows in Platform Builder.

See Also

Concepts

Debugging

Other Resources

Windows Embedded Compact 7