Partager via


Debugging an Application by Using the Kernel Debugger (Windows CE 5.0)

Send Feedback

You can use the kernel debugger to debug an application.

To debug an application by using the kernel debugger

  1. If you have not already configured a transport, you must do so before you can download your application and begin debugging.

    The status bar displays a progress bar and messages about the downloading process.

  2. From the Target menu, choose CE Processes to view the list of processes that are running on the target device.

  3. From the File menu, choose Open and select the source code file for your application.

  4. To set additional breakpoints, highlight a line of code and choose the Insert/Remove Breakpoint button on the Build toolbar.

    A red dot appears to indicate breakpoint insertion. Now you can step through the code.

    Another way to cause the debugger to break is to use the DebugBreak function in the source code before building the code. Then, when the kernel debugger is running, execution stops at the DebugBreak function.

  5. From the Target menu, do the following:

    1. Choose Run Programs,
    2. From the Available Programs list, select the name of the .exe file for your application.
    3. Choose Run.
  6. In the Processes window, choose the Refresh button to see the .exe file in the list of processes running on the target device.

  7. From the Debug menu, choose Break.

  8. When you are ready to resume execution of the application, press the F5 key or choose Go on the Debug toolbar.

See Also

Application Debugging with the Kernel Debugger

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.