88
Debugging across multiple pages
The debugger is active even after a page is loaded, and until you press the End button
on the Debug toolbar or choose Debug > End.
This enables you to 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
You can use the Step Into, Step Over, Step Out, and Run to Cursor tools on the Debug
toolbar to step through your code.
•
Step Into proceeds to the next unit of execution in your code. Use this
command to walk through code line-by-line.
If the next step is inside an included file or CFX, the debugger steps into the
next file.
•
Step Over operates in the same way as Step Into, except that it does not step
into included files (CFINCLUDE, CFMODULE, or CFLOCATION) or custom
tags. It executes the included code but does not trace through the included
code step-by-step.
•
Step Out is used when you are inside a block of included code and want to step
back to the point in your original page where you entered the included code.
•
Use Run to Cursor to execute up to the cursor position, without having to set a
breakpoint. Note that cursor location must be beyond you. If there are
breakpoints between your location and the cursor, Run to Cursor will stop at
these intervening breakpoints.
Evaluating expressions and setting watches
You can use the evaluator box at the top of the Watches pane of the Debug window to
evaluate arbitrary expressions when the debugger is suspended at a breakpoint. Use
the evaluator when you want to know how an expression evaluates as you step through
code, line by line.
Watches allow you to evaluate the same expression or variable every time you stop
execution. When you set a watch, the debugger evaluates the watched expression. A
hand pops up when the expression’s value changes from one line to the next as you
step through code.
To set watches:
1. Select
Debug > Watches
or click the Watches button on the Debug toolbar. The
Watches pane appears.
2. Cut and paste the expression or variable you want to watch into the list box at the
top of the pane.
Summary of Contents for COLDFUSION STUDIO 4.5-USING COLDFUSION...
Page 1: ...Allaire Corporation Using ColdFusion Studio ColdFusion Studio 4 5 for Windows 95 98 NT4 2000...
Page 16: ...xvi Contacting Allaire...
Page 90: ...82...
Page 130: ...122...
Page 133: ...141 Two VTML tags CAT and E let you customize the content of these dialog boxes...
Page 182: ...190...