Debugging Tools for Windows

Building DbgEng Extensions

All debugger extensions should be compiled and built by using the Build utility. The Build utility is included in the Windows Driver Kit (WDK), as well as earlier versions of the Windows DDK.

For documentation on the Build utility, open the WDK documentation, select the Index tab, and type Build utility.

Note the following points:

To build an extension, use the following procedure:

To build a debugger extension
  1. Open the Windows 2003 Server Build Environment window. (You can choose either the "free" version or the "checked" version — they will give identical results unless you have put #ifdef DBG statements in your code, because DBG is set to TRUE in the checked build environments.)
  2. Set the %DBGSDK_INC_PATH% and %DBGSDK_LIB_PATH% environment variables to specify the paths to the debugger SDK headers and the debugger SDK libraries, respectively. If %debuggers% represents the root of your Debugging Tools for Windows installation, these variables should be set as follows:

    set DBGSDK_INC_PATH=%debuggers%\sdk\inc
    set DBGSDK_LIB_PATH=%debuggers%\sdk\lib

    If you have moved these headers and libraries to a different location, specify that location instead.

  3. Change the current directory to the directory containing your extension's dirs file or sources file.
  4. Run the Build utility:

    build -cZMg

For a full explanation of these steps, and for a description of how to create a dirs file and a sources file, see the Build utility documentation in the WDK.

Build machine: CAPEBUILD