Running Contexts (Magic xpa 4.x)
You can access the Running Contexts repository by selecting Running contexts from the View menu. The Running contexts option is available when the execution breaks (either by setting a breakpoint or by selecting Debug > Break Now during execution).
This is mainly useful when you are running parallel programs.
The repository, which acts as the Context Manager, displays a list of the current open contexts.
The Context Manager is available when Magic xpa is loaded in background and because of Magic xpa’s SDI / MDI capability, the Context Manager is also available for foreground applications.
The order that the contexts appear in the repository is the order in which they were initially invoked. If a context is closed, it will no longer appear in the repository.
The context currently being debugged is highlighted.
The Running Contexts repository includes the following columns:
|
|
#
|
Indicates the context currently being debugged.
|
Id
|
The context ID.
|
Name
|
The displayed name is the context id of the context, unless specifically changed using the CtxSetName function. For MDI, the initial context is displayed as Main.
|
Status
|
Displays the status of the context. The options are Stopped and Running. Running is the state when the context has still not reached the breakpoint. Once it has reached the breakpoint, the view will be refreshed.
|
Switch to context
|
At any given time, you can monitor a single context only. You can change to a different context to see the flow in that context by right-clicking and selecting the Switch to context option or clicking the Switch to context button in the repository.
See also How Do I Use the Debugger When Running Parallel Programs?
|
|
-
The order that the contexts appear in the list will be the order in which they were initially invoked. If a context is closed, it will no longer appear in the list.
-
When you switch between contexts, the Studio will display the current operation in the task's flow editor where the flow has reached.
|
Breakpoints – Running Contexts