Running the interactive debugger helps you find problems in code by tracing how ColdFusion evaluates a page, step by step. You place one or more breakpoints in a page to pause its execution, then step through the code, checking the values of variables and expressions as you go, to ensure that t he code executes as you expect.
When you have configured RDS and file mappings, you can use the commands on the Debug menu and the Debug toolbar to run the debugger.
You can undock the Debug toolbar by double-clicking on the undock bars on the left-hand side of the toolbar, or you can drop the toolbar into the QuickBar.
The Debug Start dialog box displays each time you press the Start button in the Debugger. To disable the display of this box , select the option on the check Debug Start pane, the next time you click Run.
Debug breakpoint lines are shaded red. To turn breakpoints on and off, select Debug�> Toggle Breakpoints. To delete all breakpoints in the current document, select Debug�> Clear Breakpoints.
You cannot debug encrypted CFML templates.
This toolbar displays by default below the Resources Window tabs, but you can drag it to any other location in the Workspace. The toolbuttons let you quickly start, manage, and complete a debugging session.
The Debug toolbar displays at the bottom of the application window.
The Remote Development Settings dialog box displays the default local server.
The list box displays the pages that are open in ColdFusion Studio.
Enter a fully qualified file path relative to your local ColdFusion server; for example, http://127.0.0.1/SomeServerPath/index.cfm.
ColdFusion Studio calculates URLs of open file using the RDS development mappings (which you set in the Mappings tab.) The mappings are also required to develop code on remote servers.
Based on the RDS Security configuration for your site, a login prompt for accessing protected resources displays.
The debugger starts. It forwards your URL to the Browse view. When the ColdFusion server encounters a breakpoint, a blue bar displays at the breakpoint in Edit view. ColdFusion Server pauses until you click the Start/Continue button. The server processes the code to the next breakpoint.
When you click Start/Continue after the last breakpoint, ColdFusion executes the page and outputs it to the browser.
The debugger remains active until you select Debug�> End.
To open the Debug window, elect View > Debug Window. The panes are as follows:
Each pane has an associated command button on the Debug toolbar.
You can undock panes individually, so that, for example, you can display Breakpoints while you're displaying Watches.
The debugger is active after a page is loaded, until you click End on the Debug toolbar or select Debug > End. This lets you debug applications across multiple HTML and CFML pages. For example, you can test the submittal of an HTML form and its subsequent processing by a ColdFusion application page.
To execute code in debug mode, you use these tools on the Debug toolbar:
If the next step is inside an included file or CFX, the debugger steps into the file.
To evaluate an arbitrary expression, when the debugger is suspended at a breakpoint, you use the evaluator box at the top of the Watches pane in the Debug window. Use the evaluator when you want to know how an expression evaluates as you step through code.
A watch lets you evaluate the same expression or variable each time you stop execution. When you set a watch, the debugger evaluates the watched expression. If the watched expression's value changes, a hand icon displays.
You can use the evaluator to change values of variables, create new variables, or to insert ColdFusion functions in your expressions.
The Evaluator window shows the results of the evaluation at the current point in processing.
The Watch area shows the values of watched expressions and any error messages in resolving these parameters.
LiveDocs comments are not longer enabled for ColdFusion 5.0. Please use one of the following resources instead.
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 5.0