Chapter 16
436
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:
1
Double-click on the script that you want to contain the breakpoint.
2
Click in the left margin of the Script window next to the line of Lingo where you want the
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.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...