Using Breakpoints

 < Day Day Up > 



This useful feature is new to Flash MX; it enables you to pause a script to examine each line and its effect in your movie. Once paused, you may see additional bits of data. The line of code will be in the right side of the Debugger panel. If the line of code is in a function, you see variables, which are specific to the paused function, listed under the Local tab.

To set and/or remove breakpoints in the Debugger panel, follow these steps:

  1. In the Code View box (the large area on the right showing the code), select the line of code in which you want to set or remove a breakpoint.

  2. Choose one of the following options:

    • Click the Toggle Breakpoint icon above the Code View pane.

    • Right-click (Control+click) the line of code and select Set/Remove Breakpoint.

  3. You can now move through each line of the movie by using the following buttons located above the Code View pane:

    • Step Out — When the line of code is inside a function, this command steps outside of the currently enclosed function.

    • Step In — This advances to the next line of code.

    • Step Over — This skips a line within the function.



 < Day Day Up > 



Macromedia Studio MX Bible
Macromedia Studio MX Bible
ISBN: 0764525239
EAN: 2147483647
Year: 2003
Pages: 491

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net