How to Create and Debug a Debugger Extension
Other versions of this page are also available for the following:
8/27/2008
This topic describes how to create and debug a custom debugger extension.
A custom debugger extension enables you to automate common debugging operations for a run-time image. For example, you can create a debugger extension that debugs a particular module, service, or API.
Hardware and Software Assumptions
- You are familiar with debugger extensions.
- You have installed Windows Embedded CE 6.0 Platform Builder Service Pack 1.
Steps
Step | Description |
---|---|
1. In Microsoft Visual Studio 2005, create a new DLL project named hello_ext. |
|
2. In stdafx.h, add an
|
Not applicable |
3. Implement the required functions that are required for the extension DLL to load correctly in Platform Builder.
|
Implementing the Functions Required for a Debugger Extension DLL |
4. Create a .def file that tells the linker which functions to export. |
|
5. Build the extension DLL.
|
Not applicable |
6. Build the OS design into a run-time image and download the run-time image to the target device.
|
|
7. Load the DLL in Platform Builder by completing the following steps:
|
Not applicable |
8. At the command line, invoke the new commands from your loaded debugger extension by completing the following steps:
Note All debugger-extension commands must begin with "!". Debugger-extension commands are case-sensitive. |
Not applicable |
9. (Optional) Debug the new debugger extension. |