Prev Next

Managing Analyzer Scripts

The Execution Analyzer window enables you to manage all Analyzer scripts in the model. You can use the window toolbar buttons or script context menu options to control script tasks. Scripts are listed by Package; the list only shows Packages that have Analyzer scripts defined against them. Each user can set their own active script, independent of other users of the same model; one user activating a script does not impact the currently active scripts for other users or affect the scripts available to them. The active script governs the behavior of the Execution Analyzer; when choosing the build command from a menu, for example, or clicking the Debug button on a toolbar.

Access

Ribbon

Code > Configure > Analyzer > Edit Analyzer Scripts

Execute > Run > Analyzer

Keyboard Shortcuts

Shift+F12

Toolbar Options:

Toolbar Button

Action

See also

Quick access to the Analyzer core windows such as Call Stack or Local Variables, plus the power features:

  • Profiling
  • Recording
  • Testpoints
  • Simulation
Debugging Breakpoint and Marker Management View the Call Stack View the Local Variables View Variables in Other Scopes Inspect Process Memory The Recording History The Testpoints Window Profiling Model Simulation

Create and edit a new Analyzer Script for a Package.

Analyzer Script Editor

Export Scripts.

Export one or more Analyzer Scripts to an XML file, which can be used to import the scripts into another model.

The 'Execution Analyzer: Export' dialog displays from which you select the script or scripts to export, followed by a prompt for the target file name and location.

Import Scripts.

Import one or more Analyzer Scripts into the current model from a previously exported XML file.

The 'Browse Project' dialog displays, on which you select the Package into which to import the scripts, followed by a prompt for the source filename and location.

Execute the 'Build' command of the active script.

Add Commands

Cancel the 'Build' command currently in progress.

Execute the 'Run' command of the active script.

Add Run Command

Execute the 'Test' command of the active script.

Add Testing Command

Execute the 'Deploy' command of the active script.

Add Deploy Command

Display the Help topic for this window.

Context Menu Options:

Right-click on the required script or Package to display the context menus.

Option

Action

See also

Add New Script

Add a new script to the selected Package.

The Execution Analyzer window displays, showing the 'Build' page.

Analyzer Script Editor

Paste Script

Paste a copied script from the Enterprise Architect clipboard into the selected Package.

You can paste the copied script several times; each copy has the suffix 'Copy'.

To rename the copied script, press F2 and overtype the script name.

Export Scripts

Export scripts from the selected Package.

The 'Execution Analyzer: Export' dialog displays, from which you select the script or scripts to export, followed by a prompt for the target filename and location.

Import Scripts

Import scripts from a .XML file into the selected Package.

A prompt displays for the source filename and location.

Select In Project Browser

Highlight the selected Package in the Project Browser.

Display the Project Browser, which is now expanded to show the highlighted Package.

Build

Execute the 'Build' command of the selected script.

Build Application

Clean

Execute the 'Clean' command of the selected script.

Clean

Rebuild

Execute the 'Clean' and 'Build' commands of the selected script.

Build Application

Debug

Execute the 'Debug' command of the selected script.

Set up a Debug script

Run

Execute the 'Run' command of the selected script.

Add Run Command

Test

Execute the 'Test' command of the selected script.

Add Testing Command

Deploy

Execute the 'Deploy' command of the selected script.

Add Deploy Command

Merge

Execute the 'Merge' command of the selected script.

Merge Script

Run Executable Statemachine

Start a simulation of the selected Executable Statemachine Artifact.

Execution and Simulation of Executable StateMachines

Start Simulation

Start the simulation referenced by the 'Analyzer Script Simulation' page.

Edit

Open the selected script in the 'Analyzer Scripts Editor'.

Analyzer Script Editor

Copy

Copy the selected script to the Enterprise Architect clipboard.

Paste

Paste the most-recently copied script to the same Package as the selected script.

You can paste the copied script several times; each copy has the suffix 'Copy'.

To rename the copied script, press F2 and overtype the script name.

Delete

Delete the selected script; there is no prompt for confirmation.

To delete a Package from the Execution Analyzer window, delete the scripts from the Package. When the last script is deleted, the Package is no longer listed.

Set as Model Default

Set the selected script as the default script for the model.

The icon to the left of the script changes color; any previous model default reverts to normal.

Help

Display the Help topic for this window.