16. Debugging Your Application : How Debugging an Application Works : Edit a Script
 
Share this page                  
Edit a Script
When a processed script is displayed in the Debugger window, you can invoke the Script Editor to edit the main script or any included script or field script.
To edit a script
1. Place the cursor on the line you want to edit in the Debugger window.
2. Click Edit, Edit Script at Line.
The Script Editor displays the script that contains the line you selected. If the line with the cursor is in an included script or a field script, that script is the one to be edited.
Note:  If you are already editing the script elsewhere in the OpenROAD Debugger or in the application development environment, you cannot edit it from the Debugger window.
When you make changes in a script associated with an open frame, the Debugger window changes its display to reflect changes in the script. At this point, although you see the changed script in the Debugger window, the application is still executing the old script. If the application stops on a break condition, the icons in the Debugger window may no longer point to the correct line because the icons are referencing line numbers in the old script.
Your changes to the script are not visible to the application until you close all instances of the frame and then reopen at least one instance of the frame. When you reopen the frame, OpenROAD automatically recompiles the script, making the changes available to the application.
Note:  When you recompile, you must reset source breakpoints to ensure that they reference the correct line of the script.