
884
DEVELOPING
COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Las
t
upda
te
d 8/5/2010
Ajax plumbing enhancement in ColdFusion 9.0.1
ORM CFCs support the attribute
remotingfetch
for a property.
By default,
remotingfetch
is set to
false
.
While serializing ORM CFCs, ColdFusion introspects the
remotingfetch
property and if it is
false
, does not return
any relationship information.
If it is set to
true
, relationship information is shown. If circular reference is detected, only one level of relationship is
shown.
Debugging Ajax applications
ColdFusion provides a set of JavaScript functions that log information to a pop-up display window. ColdFusion also
logs many standard client-side activities to the window.
Display logging information
To display the logging window you must do the following:
1
Enable ColdFusion to send information to the logging window
2
Request logging window information in the main CFML page request.
Enable logging output
To enable ColdFusion to send information to the logging window, do the following:
•
Select the Enable Ajax Debug Log Window option on the ColdFusion Administrator > Debugging & Logging >
Debug Output Settings page. To view exception messages in the logging window, select the Enable Robust
Exception Information option on the Debug Output Settings page.
•
Make sure that the IP address of the system where you do the debugging is included on the ColdFusion
Administrator > Debugging & Logging > Debugging IP List page of the ColdFusion Administrator. By default this
list includes only 127.0.0.1.
Display logging information for a page
To display the logging window when you request a CFML page in the browser, specify an HTTP parameter of
cfdebug
in the URL when you request a page, as in the following URL:
http://localhost:8500/myStore/products.cfm?cfdebug
After the debug log window appears, it continues running until you navigate to a new page in the browser. The logging
window includes options that let you filter the messages by either or both of the following criteria:
•
Severity
•
Category
You can select to display logging information at any combination of four levels of severity: debug, info, error, and
window. The specific logging function that you call determines the severity level.
The logging window always displays options to filter the output by using standard categories: bind, global, http,
LogReader, and widget. (For information on these categories, see “
Standard ColdFusion logging messages
” on
page 885.) It also displays a filter option for each custom category that you specify in a ColdFusion logging call.
ColdFusion does not limit the number of categories you create, but create only as many categories as you require to
debug your application effectively.
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...