The Debug Window
The Debug window gives access to the scripts and windows of the debug facility.
To access the Debug window, select the View | Execution Analyzer | Debugger menu option.
The Debug window has three top-level folders:
- The Scripts <Package Name> folder lists the scripts available for the currently-selected package, the first in the list being, by default, the active script that is executed when you start debugging, as indicated by the selected checkbox. If you are using recording markers, this is also the script that determines what recording options are applied. If you want to execute a different script, select the appropriate checkbox. The context menu for each script provides further scripting options, such as Debug, Build, Test and Edit.
You can pin the package scripts so that they remain listed in the Debug window even if you select a different package. To do this, right-click on the folder title and select the Pin Package context menu option; the Scripts folder icon changes. To unpin the scripts, right-click on the folder title and deselect the Pin Package option.
You can also drag a script onto a diagram to automatically create a hyperlink that executes the script.
- The Debugger Windows folder lists the debug windows, which you can display or hide by selecting or deselecting the checkbox against each one. If the window is docked, you can bring it to the front by clicking on the window name:
- Breakpoints & Markers - lists any breakpoints placed in the package source code, along with their status (enabled/disabled), line number, and the physical source file in which they are located
- Call Stack - shows the position of the debugger in the code; clicking on the > button advances the stack through the code until the next breakpoint is reached
- Locals - shows the local variables defined in the current code segment, their type and value
- Watches - shows the values of static and globally scoped expressions you have entered
- Modules - displays all the modules loaded during a debug session
- Debug Output - displays output from the debugger including any messages output by the debugged process, such as writes to standard output.
- The Analyzer Windows folder lists the advanced control windows of the Execution Analyzer, which you can display or hide by selecting or deselecting the checkbox against each one:
- Record & Analyze - records any activity that takes place during a debug session; once the activity has been logged, Enterprise Architect can use it to create a new Sequence diagram
- Profiler - opens the Profiler window to sample an application
- Workbench - enables you to create instances of .NET and Java Classes
- Search - enables you to search for text in files.
You can dock and combine the windows to suit your working requirements.