Chapter 24. Debugging and testing

 

This chapter covers

  • Debugging applications using the Flex debugger
  • Using the Flash Builder profiler
  • Unit and functional testing of your applications

In previous chapters you got a solid foundation for creating your rich internet applications with Flex. This chapter focuses on tuning your application. From the powerful out-of-the-box Flash Builder toolset to third-party debugging and profiling tools, you’ll add an arsenal of weaponry to hunt down bugs and improve the performance of your Flex apps.

Flash Builder is equipped with a powerful debugger that allows you to step through code, add breakpoints, watch variables change in real time, and—new to Flash Builder 4—set conditional breakpoints that stop only when variables contain specific values. In addition to the debugger, Flash Builder Professional provides a much-improved profiler for analyzing resource consumption. Flash Builder also provides a network monitoring utility for analyzing data to and from your application and the server-side data source.

24.1. Debugging

24.2. Flex profiler

24.3. Testing your applications with automation

24.4. Summary