TOC PREV NEXT INDEX DOC LIST MASTER INDEX




More on Context

Context consists of:

If the program is stopped, there is always a current context. By default, it is the topmost frame of the last task stopped in the debugger. The user can change the current context by selecting a different frame or entry in the current task's or program's call stack or by selecting a different task in the Tasks window.

The location denoted by the current context is used for name resolution of pathnames in all debugger commands that take expressions or pathnames as arguments. For example, assume that the program stops at statement .xyz.proc; unless the user changes the current context after the program stops, any pathnames in an expression typed into the Show Data dialog box displayed by the Debug > Show... command will be resolved in the context of .xyz.proc.

The Stack window, if visible, always displays the task selected by the current context. The frame denoted by the current context is the one highlighted in the Stack window. The user may change the current frame by selecting another stack frame. This is useful if you want to display local objects or evaluate an expression in a frame other than the top frame. In particular, if a recursive subprogram (Ada) or function (C/C++) has more than one activation on the stack, then a reference to an object defined in that subprogram (Ada) or function (C/C++) will be bound to the first activation of the subprogram (Ada) or function (C/C++) at or below the current frame.

Note: The call stack can also be displayed and traversed either directly from the Source window or by entering one of call stack commands on the Command Line Pane. The call stack commands are discussed in detail in Using the Apex Debugger.

Additional Topics

For more information, click on a topic:


Rational Software Corporation 
http://www.rational.com
support@rational.com
techpubs@rational.com
Copyright © 1993-2001, Rational Software Corporation. All rights reserved.
TOC PREV NEXT INDEX DOC LIST MASTER INDEX TECHNOTES APEX TIPS