Adobe COLDFUSION 9 Manual page 400

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
9
To modify the debug settings, in Eclipse, select Window > Preferences > ColdFusion > Debug Settings. You can
specify the home page URL, which points to the page that appears in the Debug Output Buffer of the debugger when
you click the Home button. You can also specify the extensions of the types of files that you can debug and variable
scopes that you want the Debugger to recognize. To improve performance when debugging large files, deselect all
scopes for which you do not require information.
Note: To ensure that the debugger stops in the template you are debugging on the line that causes a ColdFusion error,
select Preferences > ColdFusion > Debug Settings and select the Enable Robust Exception Information checkbox.
To configure an RDS server, in Eclipse, select Window > Preferences > ColdFusion > RDS Configuration.
10
If you are running ColdFusion on the same computer as Eclipse, localhost is configured by default. To use any
additional RDS servers, enter the configuration information.
If ColdFusion and Eclipse are not running on the same computer, in Eclipse, select Window > Preferences >
11
ColdFusion > Debug Mappings. Then specify the path that Eclipse uses to open files on the ColdFusion server and
the path that ColdFusion uses to find the files that you are editing in Eclipse.
Mapping ensures that Eclipse and ColdFusion are working on the same file. For example, if you are editing files in
an Eclipse project that points to D:\MyCoolApp. Then, when you deploy the files to the ColdFusion server, you
copy them to W:\websites\MyCoolSite\, which the ColdFusion server recognizes as
D:\Shared\websites\MyCoolSite. The mapping in Eclipse specifies that the Eclipse directory is D:\MyCoolApp and
the server is D:\Shared\websites\MyCoolSite. Eclipse translates the file path (D:\MyCoolApp\index.cfm) to a path
that the ColdFusion server recognizes (D:\Shared\websites\MyCoolSite\index.cfm). To see more information
about the interaction between the client and the server, add the following to the JVM arguments in the ColdFusion
Administrator:
-DDEBUGGER_TRACE=true
If you are not running the server configuration of ColdFusion, specify Java debugging parameters in the
12
configuration file or startup script of the application server you are running. The parameters should look like the
following:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<port_number>
Ensure that the port number you specify is the same port number specified on the Debugger Settings page of
ColdFusion Administrator.
If you are running the server configuration, ColdFusion writes these debugging parameters to the jvm.config file
when you use the Debugger Settings page of the ColdFusion Administrator.
13
If you are not running the server configuration and your application server is not running on JRE 1.6, copy the
tools.jar file of the JDK version that your application server is running to the \lib folder of ColdFusion. For example,
if you are running JRun that runs on JRE 1.4, copy the tools.jar file of JDK 1.4 to the \lib folder of ColdFusion.
If you are running the server version of ColdFusion and you specify a JRE version other than JRE 1.6 in the
14
jvm.config file, copy the tools.jar file of the JDK version specified in your jvm.config file to the \lib folder of
ColdFusion.
Note: To debug ColdFusion applications running on the multiserver configuration, start the ColdFusion server from the
command line using the following command:
jrun -config <path_to_jvm_config> -start <server_name>
Test and modify the debugger in Eclipse
You can determine whether the Debugger server is configured correctly in Eclipse by selecting Window > Preferences
> ColdFusion > RDS Configuration, and then clicking Test Debugger.
Last updated 8/5/2010
395

Advertisement

Table of Contents
loading

Table of Contents