Debugging an Application by Using the Kernel Debugger (Windows CE 5.0)
You can use the kernel debugger to debug an application.
To debug an application by using the kernel debugger
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.
From the Target menu, choose CE Processes to view the list of processes that are running on the target device.
From the File menu, choose Open and select the source code file for your application.
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.
From the Target menu, do the following:
- Choose Run Programs,
- From the Available Programs list, select the name of the .exe file for your application.
- Choose Run.
In the Processes window, choose the Refresh button to see the .exe file in the list of processes running on the target device.
From the Debug menu, choose Break.
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