Debugging Across Multiple Pages; Stepping Through Code; Evaluating An Expressions And Setting A Watch - MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO Use Manual

Table of Contents

Advertisement

Using the Interactive Debugger

Debugging across multiple pages

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.

Stepping through code

To execute code in debug mode, you use these tools on the Debug toolbar:
Step Into Proceeds to the next unit of execution in your code. Use this command
to step through code line-by-line.
If the next step is inside an included file or CFX, the debugger steps into the file.
Step Over Same as Step Into, except that it executes included code but does not
trace through included code step-by-step. Does not step in included files
(CFINCLUDE, CFMODULE, or CFLOCATION) or custom tags.
Step Out Steps back to the location in the original page where you entered
included code.
Run to Cursor Executes to the cursor position; no
cursor location must be below the current position. If there are breakpoints
between the current position and the cursor, Run to Cursor stops at them.

Evaluating an expressions and setting a watch

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
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.
To set a watch:
1
Select Debug > Watches or click the Watches button on the Debug toolbar. The
Watches pane displays.
2
Cut and paste an expression or variable into the list box at the top of the pane.
3
To find the value of the expression at the next breakpoint or line where the
Debugger stops, select Evaluate.
The Evaluator window shows the results of the evaluation at the current point in
processing.
lets you evaluate the same expression or variable each time you stop
breakpoint
required. The
123

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?

This manual is also suitable for:

Coldfusion studio 5

Table of Contents