Oracle® Solaris Studio 12.4: Debugging a Program With dbx

Exit Print View

Updated: January 2015
 
 

Using the dbx Initialization File

The dbx initialization file stores dbx commands that are executed each time you start dbx. Typically, the file contains commands that customize your debugging environment, but you can place any dbx commands in the file. If you customize dbx from the command line while you are debugging, those settings apply only to the current debugging session.

A .dbxrc file should not contain commands that execute your code. However, you can put such commands in a file, and then use the dbx source command to execute the commands in that file.

    During startup, the search order is:

  1. Installation directory (unless you specify the -S option to the dbx command) /install--dir\/lib/dbxrc. The default installation directory is /opt/solstudio12.4 on Oracle Solaris platforms and /opt/oracle/solstudio12.4 on Linux platforms. If your Oracle Solaris Studio software is not installed in the default install-dir, dbx derives the path to the dbxrc file from the path to the dbx executable.

  2. Current directory ./.dbxrc

  3. Home directory $HOME/.dbxrc