Jun 04

Error connecting to JVM for debugging at localhost:5005

Posted by James Netherton | Monday 04 June 2007 17:06 PM | In ColdFusion

I finally got the ColdFusion 8 debugger working from Eclipse. Kola, in my previous post, suggested tinkering with the JVM.config file and he was right. I installed ColdFusion in multiserver mode on top of JRun and it seems the necessary entries are not added to the JVM.config file in order for the ColdFusion debugger to operate.

So I stole and amended some of the parmeters that are used for the other ColdFusion debugger – FusionDebug. Here’s what I needed to add into the JVM.config file:

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

The address parameter should match the port that the ColdFusion debugger is listening on.

Now I can set breakpoints in my code and step through it at runtime!