Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
To start a debugging session, you compile a SWF, launch it in a debugger version of the Flash Player, and connect a debugger to it. Although you're all set to debug now, nothing might happen. By default, the program runs normally. As the director, you need an opportunity to step in and yell "Cut!" before you can start working on a particular bug. This is called breaking the program (break as in "taking a break" more than "Honey, I broke that dachshund gravy boat you love"), or halting execution. There are three ways to transfer control between normal execution and interactive debugging.
If your debugging session started properly, when things go catastrophically wrong, you will be handed the director's bullhorn and have an opportunity to step in. Uncaught exceptions, which without a debugger connected might pop up a dialog box, now automatically break the execution of the program right where the error occurs. Figure 25-2 shows a program halted because of an uncaught exception.