User Guide

Table Of Contents
423
CHAPTER 18
Debugging and Troubleshooting Applications
Macromedia ColdFusion MX provides detailed debugging information to help you resolve
problems with your application. This chapter describes how you configure ColdFusion MX to
provide debugging information, how to understand the information it provides, and how to use
the
cftrace and cftimer tags to provide detailed information on code execution. It also provides
additional information on tools for validating your code before you run it and techniques for
troubleshooting particular problems.
Note: Macromedia Dreamweaver MX provides integrated tools for displaying and using ColdFusion
debugging output. For information on using these tools, see the Dreamweaver MX online Help.
Contents
Configuring debugging in the ColdFusion MX Administrator. . . . . . . . . . . . . . . . . . . . . . . . 423
Using debugging information from browser pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
Controlling debugging information in CFML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
Using the cftrace tag to trace execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
Using the cftimer tag to time blocks of code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
Using the Code Compatibility Analyzer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
Troubleshooting common problems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443
Configuring debugging in the ColdFusion MX Administrator
ColdFusion can provide important debugging information for every application page requested
by a browser. The ColdFusion MX Administrator lets you specify which debugging information
to make available and how to display it. The following sections briefly describe the Administrator
settings. For more information, see the online Help for the Debugging pages.