Partager via


Debugging an Application by Using the Kernel Debugger

  1. From the Target menu, choose Download/Initialize.

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

    **Note   **If you have not already configured a transport, you must do so before downloading can begin.

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

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

  4. To set additional breakpoints, highlight a line of code, and then 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.

    NoteAnother 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, choose Run Programs, select the name of the .exe file for your application from the Available Programs list, and then choose Run.

  6. In the Processes window, choose the Refresh button to see the .exe file in the list of processes currently running on the target device.

  7. From the Debug menu, choose Break.

  8. Choose Go on the Debug toolbar or press the F5 key to resume execution of the application.

See Also

Application Debugging

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.