Entering debugging mode
In order to access the Debugger window, a break must occur in a script. A break occurs when
Director encounters a script error or a breakpoint in a script.
When a script error occurs, the Script Error dialog box appears. The dialog box displays
information about the type of error that occurred, and asks you whether you want to debug the
script, edit the script in the Script window, or cancel.
To enter debugging mode, do one of the following:
•
Click Debug in the Script Error dialog box.
•
Place a breakpoint in a script.
When Director runs and encounters a breakpoint, the script stops executing and the Script
window changes to debugging mode. The movie is still playing, but Lingo is stopped until you
use the Debugger to tell Director how to proceed. If you have multiple Script windows open,
Director searches for one containing the script where the breakpoint occurred and changes that
window to debugging mode.
To add a breakpoint that will open the Debugger window:
Double-click on the script that you want to contain the breakpoint.
1
Click in the left margin of the Script window next to the line of Lingo where you want the
2
breakpoint to appear. Lingo will stop executing at the beginning of this line, and the Script
window will enter debugging mode.
If the Script window is open when Director encounters a script error or a breakpoint, the
Debugger window replaces the Script window.
To stop debugging and resume normal script execution, do one of the following:
•
Click the Run Script button in the Debugger window.
•
Click the Stop Debugging button in the Debugger window.
The Script window reappears in place of the Debugger window.
436
Chapter 16
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?
Questions and answers