Step through lines of code, Display and examine scripts in the call stack, Display and modify variable values – Adobe Flash Professional CS3 User Manual
Page 418
FLASH CS3
User Guide
412
Note: Breakpoints cannot be added to ASC (ActionScript for Communication) or JSFL (Flash JavaScript) files.
Set a breakpoint
❖
In the Actions panel or Script window, click in the left margin next to the line of code where you want the break-
point to appear.
Remove a breakpoint
❖
In the Actions panel or Script window, click on the breakpoint to remove.
Step through lines of code
After the ActionScript execution is interrupted at a breakpoint or runtime error, you can step through the code line
by line, choosing to step into function calls or step over them. You can also choose to continue executing the code
without stepping.
Step into code line by line
❖
Click the Step In button in the Debug Console.
Step over a function call
❖
Click the Step Over button in the Debug Console.
Step out of a function call
❖
Click the Step Out button in the Debug Console.
Resume normal code execution
❖
Click the Continue button in the Debug Console.
Display and examine scripts in the call stack
When code execution stops in the debugger, you can view the call stack in the Debug Console and display the scripts
containing the functions in the call stack. The call stack shows the current list of nested function calls that are waiting
to complete execution.
You can view the individual scripts that contain each function.
❖
In the Debug Console panel, double click the name of the script in the call stack.
Display and modify variable values
View and edit the values of variables and properties in the Variables panel.
View a variable value
1
In the Variables panel, select the types of variables to display from the Panel menu.
•
Show Constants displays the values constants (variables having a fixed value).
•
Show Statics displays variables that belong to the class, rather than to instances of the class.
•
Show Inaccessible Member Variables displays variables that are not accessible to other classes or namespaces. This
includes variables that are protected, private or internal to the namespace.