The current context is the portion of your program on which the debugger is currently focusing. When multiple sessions are running, only one session is current.
You can make any session or call current by right-clicking its node in the appropriate debugger window and choosing Make Current.
Most debugger windows depend on the current context. When you change the current context, the contents of these windows are updated to reflect the new context.
For example, the Call Stack window shows the call stack for the current thread and the Variables window shows the variables that are local to the current call.
The exceptions are the Breakpoints and Watches windows. These windows list all breakpoints and watches set in the IDE. While the set of watches is shared by all sessions, an individual watch expression is evaluated and displayed based on the current context.
When a variable is active in the current context, the Source Editor displays the value of the variable when you move the pointer over it. In cases where a program includes different variables with the same name, the Source Editor displays the value based on the current context, and not on the instance of the variable in the source code.
See Also | |
---|---|
C and C++ Breakpoints in the IDE Using the C or C++ Call Stack |
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.