Redirecting a Program's Input/Output

Related Topics:

Debugging Output Defaults

By default, the debugger directs program output to the Program I/O Tab within the Debugging window. You can choose to direct output to a Program Input/Output Window that is separate from the Debugging window, to the Dbx Commands Window, or to a custom pty.

To redirect the program's I/O:

1. In the Debugging Window, choose Debug Debugging Options. Or, in the Sun WorkShop main window, choose Options Debugging Options.

2. In the Debugging Options Dialog Box, click the Debugging Output tab.

3. From Program output, click the radio button for one of the following:
Program I/O Tab Output remains written to the Program Input/Output tab of the Debugging Window
Program I/O Window Output is written to the Program Input/Output window.
Dbx Commands Window Output is written to the Dbx Commands window and merged with the commands typed and echoed there.
Custom pty Output is written to the pty typed in the text field.

4. Click OK to apply the change to the current session, or click Save as Defaults and then click OK to apply it to all sessions.

Note - This option is equivalent to the dbx
run_io Environment Variable and teh dbx run_pty Environment Variable..