beautypg.com

Use the coldfusion debugger (windows only) – Adobe Dreamweaver CC 2014 v.13 User Manual

Page 463

background image

To the top

Create XHTML-compliant documents by default

1. Select Edit > Preferences or Dreamweaver > Preferences (Mac OS X), and select the New Document category.

2. Select a default document and select one of the XHTML document type definitions from the Default Document Type (DTD) pop-up menu,

and click OK.

For example, you can make an HTML document XHTML-compliant by selecting XHTML 1.0 Transitional or XHTML 1.0 Strict from the
pop-up menu.

Make an existing HTML document XHTML-compliant

1. Open a document, and do one of the following:

For a document without frames, select File > Convert, and then select one of the XHTML document type definitions.

For example, you can make an HTML document XHTML-compliant by selecting XHTML 1.0 Transitional or XHTML 1.0 Strict from the
pop-up menu.

For a document with frames, select a frame and select File > Convert, and then select one of the XHTML document type definitions.

2. To convert the whole document, repeat this step for every frame and the frameset document.

Note: You can’t convert an instance of a template, because it must be in the same language as the template on which it’s based. For example, a
document based on an XHTML template will always be in XHTML, and a document based on a non-XHTML-compliant HTML template will always
be HTML and can’t be converted to XHTML or any other language.

Use the ColdFusion debugger (Windows only)

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

Note: This feature is not supported on the Macintosh. Macintosh developers can use Preview In Browser (F12) to open a ColdFusion page in a
separate browser. If the page contains errors, information about the possible causes for the errors appears at the bottom of the page.

If you’re running ColdFusion MX 6.1 or earlier, make sure debugging settings are enabled in the ColdFusion Administrator before you begin
debugging. 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, see

Set up a testing server

.

To ensure the debug information is refreshed every time a page is displayed in the internal browser, make sure Internet Explorer checks for
newer versions of the file every time the file is requested. In Internet Explorer, select Tools > Internet Options, select the General tab, and click
the Settings button in the Temporary Internet Files area. In the Settings dialog box, select the Every Visit to Page option.

1. Open the ColdFusion page in Dreamweaver.

2. Click the Server Debug icon

on the Document toolbar.

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. Switch back to Code view (View > Code) or Design view (View > Design) and fix the error.

5. Save the file and click the Server Debug icon again.

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).

More Help topics

Legal Notices

|

Online Privacy Policy

456

This manual is related to the following products: