Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 402

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
• Menu - Lets you specify the type of information to display in the Breakpoints pane
• Debug Output Buffer - Contains two panes: Browser, which displays what appears in the browser during
application execution; Server Output Buffer, which displays the debug output.
• Edit pane, which displays the stacked source panes, one for each source file you have open.
• Outline pane, which displays the current source file's content in outline form
Using the ColdFusion Debugger
After you enabled the debugger in the ColdFusion Administrator and configure Eclipse, you can debug ColdFusion
pages that are in an Eclipse project.
You can use the ColdFusion Debugger to do the following tasks:
• Setting a breakpoint
• Executing code line by line
• Inspecting variables
Begin debugging a ColdFusion application
1
Open the file in the Eclipse project to debug.
You do not have to create an Eclipse project in the same folder as CFML source. You can create a project in a
different folder, create a folder under that project, and then link it to the folder where CFML sources reside.
2
Click Debug in the upper-right corner of the Eclipse workbench to go to the Debug perspective.
Select Window > Show View > Debug Output Buffer to see the output from your application and how your
3
application appears in a browser.
Select Window > Preferences and specify the home page for your debugging session, the extensions of the file types
4
that you can debug, and the variable scopes of the variables to show in the Variables pane. Click OK.
The home page is the page that appears in the Debug Output Buffer pane when you click the Home button in the
Debug Output Buffer pane.
To begin debugging the file whose source appears in the Edit pane, click the Debug icon in the Eclipse toolbar.
5
6
Click New to create a new debugging configuration.
Specify the home page for the active debug session.
7
This is the page that appears in the Debug Output Buffer pane when you click the Debug Session Home button in
the Debug Output Buffer pane.
Click Debug to start the debug session.
8
Note: If you are in the process of debugging a template and then try to browse to or refresh that page, doing so can result
in unexpected behavior in the Debugger.
Setting a breakpoint
You can set breakpoints in your CFML file to stop execution of the page at particular points. When you set a
breakpoint on a line, execution of the CFML stops just before that line. For example, if you set a breakpoint on the
third line in the following CFML page, execution stops before
<cfset yourName = "Tuckerman">
<cfoutput>Your name is #yourName#.</cfoutput>
<cfset myName = "Wilson"
<cfset myName = "Wilson">
Last updated 1/20/2012
397
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents