Script Debugging (Script Configuration)
Script debugging
To debug a script use the Script editor which can be opened as follows:
for active pictures - from process D2000 GrEditor
The only requirement to start debugging a script is the following:
for objects of Event type - process D2000 Event Handler (the parent of corresponding object of Event type) must be running
for active pictures - process D2000 HI must be running with corresponding picture opened in it
After switching the script to the debug mode it is necessary to wait for suspending the execution of script actions. Then you can monitor:
the execution of script actions
the values of local variables
The toolbar of the Script editor contains the following buttons used to debug a script:
Button | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| event - Starts the event instance and stops before the first action is executed | ||||||||||
| Stops the script debugging. If the debugging has been started by clicking the button (Start), clicking the button stops the script execution and a forced termination log will be written into the log database. If the debugging has been started by clicking the button (Attach to running script), given instance keeps the execution of script actions. | ||||||||||
|
Command waits until the script is running and the script debug conditions are met. Once the
conditions are met, the script is to be switched to the debug mode and its execution stops at
the first action.
The window used for process selection for debugging opens after this. | ||||||||||
|
The Script editor is attempting to switch the script to the debug
mode. If successful then the script execution is either suspended or the Script editor is waiting
until first event is executed in order to suspend the execution. The next progress of the Script
editor is regular. If the script is opened several times (various instances) within respective process,
the Script editor automatically displays their list. list of instances
Note: The functions listed in the HOBJ and D2000 Server instance rows require for their functionality the name of the script interpreter to be specified (i.e. D2000 Event Handler for object of Event type or D2000 HI for active picture). |
Related pages: