Debugging in Flex Builder
Flex Builder provides powerful support for real-time debugging of Flex applications.
Launching in Debug Mode
Debugging Perspective
Trace Function
ActionScript includes a top-level trace() function that can be used to
output debug expressions.
When a Flex application is launched in debug mode the trace() output will appear in the
Flex Builder console view.
trace( "This is some debug output." );
trace() output will only appear in the Flex Builder console when launched in debug mode.
Breakpoints
Breakpoints are a debugging mechanism that allow you to stop your application at a specific line of code to inspect its current state. A breakpoint is set on a specific line of code and denotes to the run-time debugger to suspend the execution of your application and allow inspection of its current state.
To add a breakpoint to a line of code, simply double-click in the margin to the left of the line of code in your editor window. In Flex Builder breakpoints appear as small circular marks to the side of a specific line of code.
When a breakpoint is encountered while debugging your applciation...
Related Links:
Flex Builder's built in help documentation contains in-depth explanations of debugging in Flex Builder. (Using Flex Builder 3 / Programming Flex Applications / Running and Debugging Applications)

