4.2.1 Overview of User-Mode Debugging

To set up a remote debugging session, do the following:

  1. To debug across a serial cable, connect the cable to both the target and host.

  2. On the target machine:

    • If running the free build of Windows NT, make sure the CSR-disable bit is not set. For more information on this bit please see Section 4.2.3.

    • Start WinDbgRm.

    • If you are debugging across a serial cable, select the serial transport layer for WinDbgRm that provides the fastest baud rate that the target and host can handle.

  3. On the host machine:

    • Start WinDbg.

    • Check the Disconnect on Exit option in the Debug dialog from the Options menu.

    • Change the transport layer to match the one used by WinDbgRm on the target.

    • Copy your driver and source files to the host. Use the User DLLs dialog from the Options menu to specify the symbol search path to your driver; use the Debug dialog from the Options menu to specify the source search path to your source files.

    • Select the Attach command from the Run menu.

    • Choose the CSR process (csrss.exe) from the task list.

    • Select Go from the Run menu or press F5.