2.4.2 Using DDD with a Remote Inferior Debugger
In order to run the inferior debugger on a remote host, you need
`remsh' (called `rsh' on BSD systems) access on the remote host.
To run the debugger on a remote host HOSTNAME, invoke DDD as
ddd --host HOSTNAME REMOTE-PROGRAM
If your remote USERNAME differs from the local username, use
ddd --host HOSTNAME --login USERNAME REMOTE-PROGRAM
ddd --host USERNAME@HOSTNAME REMOTE-PROGRAM
There are a few _caveats_ in remote mode:
* The remote debugger is started in your remote home directory.
Hence, you must specify an absolute path name for REMOTE-PROGRAM
(or a path name relative to your remote home directory). Same
applies to remote core files. Also, be sure to specify a remote
process id when debugging a running program.
* The remote debugger is started non-interactively. Some DBX
versions have trouble with this. If you do not get a prompt from
the remote debugger, use the `--rhost' option instead of `--host'.
This will invoke the remote debugger via an interactive shell on
the remote host, which may lead to better results.
Note: using `--rhost', DDD invokes the inferior debugger as soon
as a shell prompt appears. The first output on the remote host
ending in a space character or `>' and not followed by a newline is
assumed to be a shell prompt. If necessary, adjust your shell
prompt on the remote host.
* To run the remote program, DDD invokes an `xterm' terminal
emulator on the remote host, giving your current `DISPLAY'
environment variable as address. If the remote host cannot invoke
`xterm', or does not have access to your X display, start DDD with
the `--no-exec-window' option. The program input/output will then
go through the DDD debugger console.
* In remote mode, all sources are loaded from the remote host; file
dialogs scan remote directories. This may result in somewhat
slower operation than normal.
* To help you find problems due to remote execution, run DDD with
the `--trace' option. This prints the shell commands issued by
DDD on standard error.
Note: Customizing Remote Debugging, for customizing remote mode.
- Customizing Remote Debugging
automatically generated by info2www version 220.127.116.11