
Using the Code Compatibility Analyzer
405
Note:
If you specify inline trace output, and a
cftrace
tag is inside a
cfsilent
tag block, ColdFusion
does not display the trace information in line, but does include it in the standard debugging display.
The following
cftrace
tag displays the information shown in the example output and log entry
in the
“About the cftrace tag”
section:
<cftrace abort="False" category="UDF End" inline = "True" text = "GetRecords
UDF
call has completed" var = "MyStatus">
Using the Code Compatibility Analyzer
The Code Compatibility Analyzer has two purposes:
•
It can validate your application’s CFML syntax. To do so, the analyzer runs the ColdFusion
compiler on your pages, but does not execute the compiled code. It reports errors that the
compiler encounters.
•
It can identify places where ColdFusion MX might behave differently than previous versions.
The analyzer identifies the following kinds of features:
■
No longer supported
Their use results in errors. For example, ColdFusion now generates
an error if you use the
cflog
tag with the
thread="Yes"
attribute.
■
Deprecated
They are still available, but their use is not recommended and the they might
not be available in future releases. Deprecated features might also behave differently now
than in previous releases. For example, the
cfservlet
tag is deprecated.
■
Modified behavior
They might behave differently than in previous versions. For example,
the
StructKeyList
function no longer lists the structure key names in alphabetical order.
The analyzer provides information about the incompatibility and its severity, and suggests a
remedy where one is required.
type
A ColdFusion logging severity type. The inline trace display and dockable.cfm
output format show a symbol for each type. The default debugging output shows
the type name, which is also used in the log file. The type name must be one of
the following:
Information (default)
Warning
Error
Fatal Information
var
The name of a single variable that you want displayed. This attribute can specify a
simple variable, such as a string, or a complex variable, such as a structure name.
Do not surround the variable name in pound signs.
Complex variables are displayed in inline output in
cfdump
format; the debugging
display and log file report the number of elements in the complex variable,
instead of any values.
You can use this attribute to display an internal variable that the page does not
normally show, or an intermediate value of a variable before the page processes it
further.
To display a function return value, put the function inside the message. Do not
use the function in the
var
attribute, because the attribute cannot evaluate
functions.
Attribute
Purpose
Summary of Contents for ColdFusion MX
Page 1: ...Developing ColdFusion MX Applications...
Page 22: ...22 Contents...
Page 38: ......
Page 52: ...52 Chapter 2 Elements of CFML...
Page 162: ......
Page 218: ...218 Chapter 10 Writing and Calling User Defined Functions...
Page 250: ...250 Chapter 11 Building and Using ColdFusion Components...
Page 264: ...264 Chapter 12 Building Custom CFXAPI Tags...
Page 266: ......
Page 314: ...314 Chapter 14 Handling Errors...
Page 344: ...344 Chapter 15 Using Persistent Data and Locking...
Page 349: ...About user security 349...
Page 357: ...Security scenarios 357...
Page 370: ...370 Chapter 16 Securing Applications...
Page 388: ...388 Chapter 17 Developing Globalized Applications...
Page 408: ...408 Chapter 18 Debugging and Troubleshooting Applications...
Page 410: ......
Page 426: ...426 Chapter 19 Introduction to Databases and SQL...
Page 476: ...476 Chapter 22 Using Query of Queries...
Page 534: ...534 Chapter 24 Building a Search Interface...
Page 556: ...556 Chapter 25 Using Verity Search Expressions...
Page 558: ......
Page 582: ...582 Chapter 26 Retrieving and Formatting Data...
Page 668: ......
Page 734: ...734 Chapter 32 Using Web Services...
Page 760: ...760 Chapter 33 Integrating J2EE and Java Elements in CFML Applications...
Page 786: ...786 Chapter 34 Integrating COM and CORBA Objects in CFML Applications...
Page 788: ......