Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Chapter 2: Building and deploying LiveCy... > Debugging your application - Pg. 26

LIVECYCLE DATA SERVICES ES 25 LiveCycle Data Services ES 2.6 Developer Guide Debugging your application If you encounter errors in your applications, you can use the debugging tools to perform the following: · · · · · Set and manage breakpoints in your code Control application execution by suspending, resuming, and terminating the application Step into and over the code statements Select critical variables to watch Evaluate watch expressions while the application is running Debugging Flex applications can be as simple as enabling trace() statements or as complex as stepping into a source files and running the code, one line at a time. The Flex Builder debugger and the command line debugger, fdb, let you step through and debug ActionScript files used by your Flex applications. For information on how to use the Flex Builder debugger, see Using Adobe Flex Builder 3. For more information on the command line debugger, fdb, see Building and Deploying Adobe Flex 3 Applications. Using Flash Debug Player To use the fdb command line debugger or the Flex Builder debugger, install and configure Flash Debug Player. To determine whether you are running the Flash Debug Player or the standard version of Flash Player, open any Flex application in Flash Player and right-click. If you see the Show Redraw Regions option, you are running Flash Debug Player. For more information about installing Flash Debug Player, see the LiveCycle Data Services ES installation instructions. Flash Debug Player comes in ActiveX, Plug-in, and stand-alone versions for Microsoft Internet Explorer, Netscape- based browsers, and desktop applications. You can find Flash Debug Player installers in the following locations: · · Flex Builder: install_dir/Player/os_version Flex SDK: install_dir/runtimes/player/os_version/ Like the standard version of Adobe Flash Player 9, Flash Debug Player runs SWF files in a browser or on the desktop in a stand-alone player. Unlike Flash Player, the Flash Debug Player enables you to do the following: · Output statements and application errors to the local log file of Flash Debug Player by using the trace() method. · · · · · Write data services log messages to the local log file of Flash Debug Player. View run-time errors (RTEs). Use the fdb command line debugger. Use the Flex Builder debugging tool. Use the Flex Builder profiling tool. Note: ADL logs trace() output from AIR applications. Using logging to debug your application One tool that can help in debugging is the logging mechanism. You can perform server-side and client-side logging of requests and responses. Client-side logging For client-side logging, you directly write messages to the log file, or configure the application to write messages generated by Flex to the log file. Flash Debug Player has two primary methods of writing messages to a log file: