Debugging a Program With dbx

Maintaining Two Sets of Options

To maintain different options settings for running dbx within Sun WorkShop and from the command line in a shell, you can use the havegui variable in your .dbxrc file to conditionalize your dbxenv commands. For example:


 if $havegui
   then
      dbxenv follow_fork_mode ask
      dbxenv stack_verbose on
   else
       dbxenv follow_fork_mode parent
       dbxenv stack_verbose off

.