|
Viewing debugging information in the workspace
As you know, ColdFusion server can provide important debugging information about the ColdFusion pages in your applications. For example, by setting debugging options in ColdFusion Administrator, you can generate a report at the end of each ColdFusion page detailing execution times, database activity, exception (or error) information, and variable values.
Normally, the debugging information is displayed at the end of ColdFusion pages in a web browser. However, if you use ColdFusion MX version of the server, you can view the debugging information in the Dreamweaver MX workspace. In other words, you can test your codeand fix any bugs foundwithout leaving Dreamweaver MX.
Note: You can download and install a fully functional, developer edition of ColdFusion MX from the Macromedia website. The Dreamweaver MX CD for Windows also includes a copy of ColdFusion MX Server Developer Edition.
To display debugging information in Dreamweaver MX:
| 1 |
Make sure Debugging is enabled in ColdFusion Administrator.
 |
| 2 |
With a ColdFusion page open in Dreamweaver, click the Server Debug icon on the document toolbar (the icon with the globe and lightning bolt), or select View > Server Debug. |
|
Dreamweaver requests the file from the ColdFusion MX 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. Depending on the debugging settings in ColdFusion Administrator, 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 on 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 Server Debug mode, switch to Code view (View > Code) or Design view (View > Design). |
 |
|
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, choose 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.
|