Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
View the Call Stack
The Call Stack window is used to display all currently running threads in a process. It can be used to identify which thread is operational immediately before program failure occurs.
When a Simulation is active, the Call Stack will show the current execution context for the running simulation. This will include a separate context stack for each concurrent simulation "thread".
A stack trace is displayed whenever a thread is suspended, through one of the step actions or through encountering a breakpoint. The Call Stack window can record a history of stack changes, and enables you to generate Sequence diagrams from this history.
Access Analyzer | Call Stack
Use to
• | View stack history to understand the execution of a process |
• | View threads |
• | Save a call stack for later use |
• | Record call stack changes for Sequence diagram generation |
• | Generate a Sequence diagram from the call stack |
• | View the related code line in the Source Code Editor |
Topics
Topic |
Detail |
See also |
||||||
---|---|---|---|---|---|---|---|---|
Indicators |
|
|
||||||
Save a Call Stack to a .TXT File |
Not currently available. |
|
||||||
Record a Thread in a Debug Session |
To record the execution of a thread and direct the recording to the Record & Analyze window, right-click on the thread in the call stack and select the appropriate context menu option:
|
|||||||
Stop Recording |
If you have started a manual or automatic recording of a thread you can stop it before completion; select the thread (indicated by a red arrow) and either:
|
|
||||||
Generate a Sequence Diagram from the Call Stack |
To generate Sequence diagram from the call stack trace, either:
|
|||||||
Copy Stack to Recording History |
To add the stack details immediately to the Record & Analyze window (for later generation of Sequence diagrams) either:
|
|||||||
Toggle Stack Depth |
To toggle between showing the full stack and showing only frames with source, click on the (Toggle Stack Depth) button.
|
|
||||||
Display Related Code in Source Code Editor
|
Double-click on a thread/frame to display the related line of code in the Source Code Editor; local variables are also refreshed for the selected frame. |
Learn more