Setting the Language for Expression Evaluation

Related Topics:

Language and Scoping Defaults language Command

You can set the language used for parsing and evaluating expressions. In the default mode Autodetect, Sun WorkShop automatically selects the appropriate language. However, if you always use a certain language, you can change the mode.

To set the debugging language for expression evaluation:

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 Language and Scoping tab

3. Select one of the following from the Language Mode list:
Autodetect Sets expression evaluation language to language of current file. Useful if debugging programs with mixed languages.
Main Sets expression evaluation language to the language of the main routine in the program. Useful if debugging homogeneous programs.
C Sets expression language to C.
ANSI C Sets expression language to ANSI C.
C++ Sets expression language to C<++.
Objective C Sets expression language to Objective C.
Fortran 77 Sets expression language to FORTRAN 77.
Fortran 90 Sets expression language to Fortran 90.

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
language_mode Environment Variable.