
Debug the sample application 201
Debug the sample application
Debugging an application means that you are running it in debug mode. This allows you to
suspend the application when a breakpoint is encountered, inspect and modify the code, and
then resume the application to continue debugging.
1. Click the Debug command ( ) on the main toolbar, or press F11.
2. Repeat the steps that created the error the first time you tested the application. Enter 100
as the amount, select Euro from the combo box, and then click the Calculate button
3. Since you set the breakpoint on the Calculate button, the application is suspended, which
brings Flex Builder back into focus and switches you into the Debugging perspective.
The line of code of containing the breakpoint is highlighted in the editor, as shown here:
The Debugging perspective contains a number of views that provide the debugging tools
that allow you to examine the state of the application, monitor important variables,
management breakpoints and so on.
The control center of the Debugging perspective is the Debug view, as shown here:
The Debug view contains the commands that you use to control the debugging process,
step you through the code, and then resume or stop running the application.
Commentaires sur ces manuels