The information in this article applies to:
SUMMARYThis article is intended to describe the procedures for setting up the debugger on a Windows NT system using a Null modem cable attached to another Windows NT system. MORE INFORMATION
The process of setting up the debugger with a Null modem cable is broken
down into the following topics:
What is the need for the kernel debugger?The kernel debugger that comes with Microsoft Windows NT provides information about the system that is normally not available without the aid of the debugger. Windows NT has the ability to enable the kernel debugger from the Windows NT start-up menu (Boot.ini). Enabling the kernel debugger allows the Windows NT debugger to output debugging information to a remote debugger for a remote user to analyze. This is normally done at the request of a Microsoft Support Engineer for analyzing a fatal error in Windows NT that cannot be diagnosed from the Memory.dmp file or when a Memory.dmp file is not produced.What is the process of remote debugging?For our discussion the target machine will be the system that is being debugged and the host machine will be the system doing the debugging. The process of remote debugging happens when two computers are connected by the serial communication ports. The target computer and the host computer are running the Windows NT kernel debuggers, which communicate using a special debug API and Protocol.Why use a Null modem cable?Connecting the Null modem cable to a serial port allows the debugger to run at its current top speed of 19200, compared to the speed of 9600 over a modem. It is generally considered more reliable than using a modem for the following reasons: it does not involve configuring a modem, there is no possibility of a modem or line failure, a system can be debugged locally, and finally it provides faster debugging.The most common method is to set up a target computer for debugging and the host computer for doing the debugging using a Remote.exe session. This configuration allows a technical support person to connect to the Remote.exe session by means of a RAS connection and debug the target computer without physically being present at the target computer. Changing the attributes on the Boot.ini fileTo set up the target computer, simply edit the Boot.ini file in the boot partition and add the appropriate debugger options. The Boot.ini is edited using a standard ASCII text editor. The Boot.ini is hidden in the boot partition directory. The Boot.ini attributes are hidden, read-only and system. These attributes must be changed to edit the Boot.ini file.To change the attributes of the Boot.ini file: At the command prompt, type attrib -h -r -s c:\boot.ini and press Enter, and then edit the file. To restore the read-only, hidden, and system attributes when you finish editing the file, type attrib +h +r +s c:\boot.ini at the command prompt. - Or -
Debugger OptionsOnce the Boot.ini on the target computer is opened for editing, several options can be added to the Boot.ini file to configure the debugger environment on the target computer. The various options available are listed and described below.
Configuring the debugger for the systemThere are several options available for configuring the debugger on the target computer. To add any one of the previous options to the Boot.ini, use the following example.The following is a typical Boot.ini. Each entry in the [operating systems] section should correspond to the options listed in the boot menu during a normal system startup.
To enable the debugger, use COM1 to do the following.
Setting up the Null modem cableA Null modem cable is a serial cable that has been configured to allow data to be sent between two serial ports. Normally you connect a serial port to a serial device. In this case we need to configure the target computer to accept a serial-port-to-serial-port connection. It is important that a Null modem cable be used because if a normal serial cable is used the target system expects a serial device, not another serial port, and the system cannot be debugged.When you use a NULL modem to make a direct serial connection between two computers, your cable must be wired as shown in the following tables.
Configuring the Host computer for a Remote.exe sessionThe concept here is that the host computer is being set up to do a debug of the target computer as if there were a technical support person sitting at the host computer. The Remote.exe will be run to allow this debug session to be accessed remotely through a RAS connection.The Remote.exe is a command line utility which allows you to run command-line programs on remote computers. Remote.exe uses two parts, the server component and the client component. To use Remote.exe, you must first start the server end on the computer where you are debugging from. This allows other users to connect to your debugging session using the client portion of Remote. The Remote.exe comes with the Resource Kit. For more details and the command syntax of this utility, refer to the Resource Kit online help. The Windows NT installation compact disc and the Windows NT Resource Kit compact disc should be available to accomplish this setup.
Additional Information Resources
Additional query words: 3.50 3.51 prodnt debugref
Keywords : NTSrvWkst |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |