In This Book

Running the Debugger Remotely

You can use resources provided by the X Window System to run the debugger on one machine while displaying the user interface on another. To run a debugging session over two machines in a network, you must:

1.Provide display access to the machine that will run the user interface. Enter the following command at a shell prompt on the machine that will display the user interface:

xhost debugger machine

where debugger machine is the hostname of the machine that will run the debugger. The hostnames are usually listed in /etc/hosts .

2.Log in to the machine that will run the debugger from the machine that will display the user interface. Typically, at a shell prompt, you would enter:

rlogin debugger machine

where debugger machine is the name of the machine that will run the debugger.

3.Invoke HP/DDE with the -display option from the shell where you logged into the debugger machine :

dde -display display machine:0

where display machine is the name of the machine that will display the user interface. If you get a message stating that the dde command cannot be found, add /opt/langtools/bin to your PATH variable.

Note that instead of using the debugger -displayoption, you can also set the DISPLAY environment variable to display machine :0. You may get a Broken pipe error message if you forget to specify the -displayoption or set the DISPLAY variable.

8-24 Debugging in Special Situations