CF8 Debugger w/ Multi-server setup

For my local development, I have ColdFusion setup with the multi-server config. I was going through the directions for setting up the debugger, and came across this line: "If you are not running the server configuration of ColdFusion, you must specify Java debugging parameters in the configuration file or startup script of the application server you are running." Well, I am running JRun, but the directions don't give you any help on where to specify these Java debugging parameters.

After a bunch of digging around, I was able to find the file you'll need to edit: jrun_root/bin/jvm.config. In that file you will see a line that starts with "# Arguments to VM". At the end of that line you need to add this:

-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

but change the "address" to whatever port you specified in CFAdmin->Debugging & Logging->Debugger Settings.

After I made that change, and restarted the ColdFusion server, the debugging finally worked.

Related Blog Entries

Comments
Many thanks, Jake. Just what I needed!
# Posted By marc esher | 6/3/08 5:12 AM
Thank you, this post helped a lot. Question - if you have several instances of CF running how would you configure the jvm.config file if you want to debug in all of them? Seems like you would not be able to use the same port from multiple instances.
# Posted By Eric Knipp | 6/30/08 11:49 AM
@Eric,

Sorry, I can't help you with multiple instances. I haven't done it before.
# Posted By Jacob Munson | 7/3/08 1:28 PM
Hi there, I am running into the same issue with multiple instance. The solution to this is run each instance from its own jvm.config. To do this you would need to not create the Windows service for the isntance when you are creating it. After the instance is created you would need to point it to the JVM.CONFIG file you would llike to use for it by running the command below
D:\jrun4\bin\jrunsvc.exe -install [JRun Server Name]
"Adobe ColdFusion 8 AS [JRun Server Name]"
"Adobe ColdFusion 8 AS [JRun Server Name]"
-config [JVM Config File Name]
once you do that you can go ahead and use the mapping tool to map the instance to your Web server.
# Posted By Ahmed El-Rasheedy | 5/17/10 5:19 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9. Contact Blog Owner