Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Script Debugging
Script debugging aids in the development and maintenance of model scripts, and monitoring their activity at the time of execution. While debugging a script, you can:
- Control execution flow using the 'Debug', 'Step Over', 'Step Into', 'Step Out' and 'Stop Script' buttons on the Script Editor toolbar
- Set Breakpoints, Recording Markers and Tracepoint Markers
- Use the Debug window to view output generated by the script
- Use the Locals window to inspect values of variables, including objects from the Automation Interface
- Use the Record & Analyze window to record a Sequence diagram of the script execution
Access Script Editor Toolbar: Debug button
Begin debugging a model script
Step |
Action |
See also |
---|---|---|
1 |
Open a model script in the Script Editor. |
Scripts Tab Script Editor |
2 |
Set any Breakpoints on the appropriate line(s) of code. |
Marker Types Setting Code Breakpoints |
3 |
Click on the |
Notes
- Script debugging is supported for VBScript, JScript and Javascript
- VBScript and JScript require the Microsoft Process Debug Manager to be installed on the local machine; this is available through various Microsoft products including the free 'Microsoft Script Debugger'
- Breakpoints are not saved for scripts and will not persist when the script is next opened
- While debugging, script output is redirected to the Debug window
Learn more