Debugging a Program With dbx

Maintaining a Unified Set of Options

If you use dbx both from the command line in a shell and from within Sun WorkShop, you can create a unified set of options that customizes dbx for both modes:

  1. In the Sun WorkShop Debugging window, choose Debug Æ Debugging Options.

  2. Click Save as Defaults to make your current option settings your defaults.

  3. Open your .dbxrc file in an editor window.

  4. Near the top, add the line source $HOME/.workshoprc.

  5. Move the relevant dbxenv commands to a location after the source line, or delete them, or comment them out.

  6. Save the file.

Any changes made through the Debugging Options dialog box are now available to dbx through both Sun WorkShop and when running in a shell.