Debugging Application Pages

Good development practices also involve debugging applications as you develop them.

During the last chapter, there was nothing on your application page to debug. But now, there is a query that is not being output to the page.

When developing and debugging applications, you will want to enable debugging options for ColdFusion Server so that you can view run-time information about:

Enable debugging within the ColdFusion Express Administrator.

Note Note:There are several debugging options that you can set for ColdFusion Server. Refer to Chapter 13, Configuring ColdFusion Express Server for additional detail.
Note To enable ColdFusion Server debugging:
  1. Select Start > Programs > ColdFusion Express > ColdFusion Administrator.
  2. The Administrator prompts you for a password if you assigned one to ColdFusion Server during install.

  3. Enter a password to gain access to the Administrator.
  4. Click DEBUGGING under the Administrator Server heading.
  5. Check the following debug settings:
  6. SHOW VARIABLES
    SHOW PROCESSING TIME
    SHOW SQL AND DATA SOURCE NAME
    SHOW QUERY INFORMATION
    
  7. Click APPLY to store these debug options.
  8. Debugging is enabled.

  9. Close the ColdFusion Administrator.
  10. Move on to view debugging information.

  11. Return to EmpList.cfm in your browser.
  12. Scroll down to the bottom of the page.
  13. View the debugging information.
  14. You should see query properties, the SQL used, Data Source Name, and processing time displayed.

Move on to the next heading to learn how to output query data to a page.