Debugging Across Multiple Pages; Stepping Through Code; Evaluating Expressions And Setting Watches - MACROMEDIA COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO Use Manual

For windows 95/98/nt4/2000
Table of Contents

Advertisement

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.

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.
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.

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Coldfusion studio 4.5

Table of Contents