Debugging with FlexBuilder
Flex Builder provides excellent debugging support for Flex applications. With Flex Builder you can:
- Set breakpoints
- View variables and their object trees
- Watch specific variables in different scopes
- Step in, over, and out of lines of code
For example, if your application has a "Add New" button that dispatches an event called AddNewEvent(), you would setup breakpoints in
- the handler function in your view that dispatches the event
- the execute() method of the Command that is invoked by the Controller to handle the event
- the handler function within the Command that actually handles the event
- the handler function within the Delegate that the command handler hands the server-side process off to
- the onResults handler function in the Delegate that handles the results come back from the server-side processing
- the onResults handler function in the Command that handles the results returned by the Delegate.
When you run the application, Flex builder will pause at all these breakpoints to display the state of the application. You can then examine the variables or evaluate expressions to see that all is going as you are expecting it go.
More information on the Flex Builder debugger can be found in the Adobe Flex documentation.
Next approach: ColdFusion Server Debugging »
Comments
There are no comments for this page as yet.
print page
