Chapter Contents

Previous

Next
Command Directory

browse

Request to browse a source file

ABBREVIATION
bro{wse}

FORMAT
browse [struct | union | class | enum] name

DESCRIPTION
The browse command is used to browse the area of the source file where the name being browsed is declared. The format of the browse command is as follows:
browse [struct|union|class|enum] NAME

The NAME argument is a single identifier name, not an expression.

The class keyword is valid only if auto cxx is in effect. The cxx keyword is set automatically whenever the debugger detects C++ translated source code.

If the optional struct, union, class, or enum keyword is not specified, the debugger performs a search in the following order:

  1. the list of preprocessor symbols, if present

  2. the list of identifiers, typedefs, and enumeration constants

  3. the list of struct, union, enum, or class tag names.

If one of these optional keywords is specified, only the list of tag names is searched.

Normal C scope rules apply to all searches; command scope is used. If a declaration for the name is found, a Browse window is opened on the file and positioned to the line containing the declaration.

The browse command may be preceded with a > or >> command prefix: a > opens a new Browse window; a >> or no prefix reuses the most recently used Browse window or opens one if none is open.

Note:    The only way to issue the browse command is through the Command window (or a PF key). You cannot issue the browse command in the Browse window.  [cautionend]

EXAMPLES

browse i
browse the source file where i is declared.

browse struct s
browse the source file where structure s is declared.

SYSTEM DEPENDENCIES
none

COMMAND CAN BE ISSUED FROM

PROFILE no
configuration file no
Source command prefix no

SCOPE
The browse command uses command scope to resolve the name.

RETURN CODES SET


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.