Debugging Tools for Windows |
In this documentation of how to control user-mode debugging from the kernel debugger, target application refers to the user-mode application that is being debugged, target computer refers to the computer that contains the target application and the NTSD or CDB process, and host computer refers to the computer that contains the kernel debugger.
To begin using this technique, you must do the following. You can do steps 1 and 2 in either order.
For example, you can attach to a running process by using the following syntax.
Or, you can start a new process as the target by using the following syntax.
If you are installing this as a postmortem debugger, you would use the following syntax.
For more information about this step, see Attaching to a Running Process (User Mode) or Spawning a New Process (User Mode).
For more information about this step, see Attaching to a Target Computer (Kernel Mode).
If you use CDB, the Command Prompt window that is associated with CDB remains locked and unavailable while debugging continues. If you use NTSD, no additional window is created, even though NTSD has a process ID associated with it on the target computer.
If you want to run the user-mode debugger from the kernel debugger while also using it as a debugging server, see Combining This Method with Remote Debugging.