PowerAda Browsing

From OC Systems Wiki!
< PowerAda:The PowerAda Debugger: adbg
Revision as of 21:53, 14 April 2019 by imported>WikiVisor
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The debugger supports browsing the source of the units contained in the program to be debugged. Source browsing permits the user to view any unit of the program at any time and to reference the source code directly when performing commands.

The debugger automatically browses the unit associated with the current view when the target program runs. The user can browse a different unit by selecting the unit in the Unit Selection Dialog. The source for the unit is placed in a display widget where it can be scrolled.

The user can click on a line in the source display to indicate that the chosen line should be used as the parameter for a subsequent source operation, such as setting a breakpoint or expanding generic source inline.

The user can select source text to be used for subsequent commands by dragging over the text in the normal way. The selected text can be pasted into a text field directly to compose a command. Alternatively, a source command can be selected from the special pop-up menu to display a variable value.

The user can select the nearest Ada lexical element by clicking MB2 or shift-MB1 in the Ada source. The definition of the selected element can be found using the command in the pop-up menu shown by pressing MB3. The definition of a reference to an object is its declaration, and the definition of a declaration is its component type. Furthermore, the definition of a specification is its body and its definition is its specification.

The local uses of an object can be found by selecting an Ada lexical element and using the local uses command in the Source menu.

Note that the Main Debugger Window is not a browser window; you must choose Browse Current View from the Windows pulldown menu to perform all browsing operations.

A more complete description is provided in the Unit Browser section below.