Using the ColdFusion debugger (Windows only)

Using the ColdFusion debugger (Windows only)

If you’re a ColdFusion developer using Macromedia ColdFusion as your Dreamweaver testing server, you can view ColdFusion debugging information without leaving Dreamweaver.

If you’re running ColdFusion MX 6.1 or earlier, make sure debugging settings are enabled in ColdFusion Administrator before you begin debugging. For more information, see the ColdFusion documentation in Using Dreamweaver (Help > Using ColdFusion). If you’re running ColdFusion MX 7 or later, Dreamweaver enables the settings for you.

Also, make sure your Dreamweaver testing server is running ColdFusion. For more information on the Dreamweaver testing server, see Specifying where dynamic pages can be processed.

To debug a ColdFusion page:

  1. Open the ColdFusion page in Dreamweaver.
  2. Click the Server Debug icon on the Document toolbar. This is a picture of the feature being described.

    Dreamweaver requests the page from the ColdFusion server and displays it in an internal Internet Explorer browser window. If the page contains errors, possible causes for the errors appear at the bottom of the page.

    At the same time, a Server Debug panel opens. The panel provides a large amount of useful information, such as all the pages the server processed to render the page, all the SQL queries executed on the page, and all the server variables and their values, if any. The panel also provides a summary of execution times.

  3. If an Exceptions category appears in the Server Debug panel, click the Plus (+) icon to expand the category.

    The Exceptions category appears if the server encountered a problem or problems with the page. Expand the category to find out more about the problem.

  4. In the Location column of the Server Debug panel, click the page’s URL to open the page in Code view and fix it.

    If Dreamweaver can locate the page, the page opens with the problem line or lines highlighted. If Dreamweaver cannot locate the page, it asks you for the location.

  5. Fix the error, save the file to the server, and click browse.

    Dreamweaver renders the page in the internal browser again and updates the Server Debug panel. If there are no more problems with the page, the Exceptions category does not reappear in the panel.

  6. To leave debug mode, switch to Code view (View > Code) or Design view (View > Design).

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Setting Up Your Coding Environment
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly