Remote.exe Batch Files
As a more detailed example of remote debugging with remote.exe, assume the following about a local host computer in a three-computer kernel debugging scenario:
Debugging needs to take place over a null-modem cable on COM2.
The symbol files are in the folder c:\winnt\symbols.
A log file called debug.log is created in c:\temp.
The log file holds a copy of everything you see on the Debug screen during your debug session. All input from the person doing the debugging, and all output from the kernel debugger on the target system, is written to that log file.
A sample batch file for running a debugging session on the local host is:
set _NT_DEBUG_PORT=com2 set _NT_DEBUG_BAUD_RATE=19200 set _NT_SYMBOL_PATH=c:\winnt\symbols set _NT_LOG_FILE_OPEN=c:\temp\debug.log remote /s "KD -v" debug
Note If this batch file is not in the same directory as Remote.exe, and Remote.exe is not in a directory listed in the system path, then you should give the full path to the utility when invoking Remote.exe in this batch file.
After this batch file is run, anyone with a Windows computer that is networked to the local host computer can connect to the debug session by using the following command:
remote /c computername debug
where computername is the NetBIOS name of the local host computer.
Build date: 11/16/2013