set

The set command allows you to configure your debugger session and change program variable values.

Syntax

set { prompt ptext 
    | annotate {1|0}
    | verbose {on|off}
    | variable varname=expression
    | environment envname[=value]
    }
  1. ptext is the string to which the prompt should be set.
  2. varname is the program variable to be set to expression .
  3. expression is a combination of variables, constants and operators.
  4. envname is the environment variable to be set to value .

Usage

The set command allows to change program variables and/or the environment.

set variable sets an program variable, to be taken into account when continuing program execution. The right operand can be an expression.

set prompt changes the prompt text. The text can be set toady string. A space is not automatically added after the prompt string, allowing you to determine whether to add a space at the end of the prompt string.

set environment sets an environment variable, where value may be any string. If the value parameter is omitted, the variable is set to a null value. The variable is set for your program, not for the debugger itself.

set verbose on forces the debugger to display additional messages about its operations, allowing you to observe that it is still working during lengthy internal operations.

set annotate 1 switches the output format of the debugger to be more machine readable (this command is used by GUI front-ends like ddd or xxgdb )

Example

(fgldb) set prompt ($)
($)

On UNIX™ systems, if your SHELL variable names a shell that runs an initialization file, any variables you set in that file affect your program. You may wish to move setting of environment variables to files that are only run when you sign on, such as .login or .profile.