ColdFusion 9 line debugger for eclipse

China☆狼群 提交于 2019-12-03 19:20:36

You need: ColdFusion Builder http://www.adobe.com/products/coldfusion-builder.html from Adobe, not CFEclipse.

You may install as a plugin to your existing Eclipse, or as standalone.

It can be used for free after evaluation period for free with limited features. I'm not sure if line-debugger is one of the free features.

Using the same instructions available for CFEclipse and CF8, I was able to get the debugger working using CF9 and Eclipse 4.2 (Juno) with the CFEclipse pluggin. After much searching, I found the RDS configuration entries live in Window->Preferences->Adobe->RDS Configuration menu option. How I configured it:

You have to make sure the port that the RDS Debug server starts in is open: I am using Windows Server 2008, and basically openned the port which I added the JVM Arguments settings in ColdFusion administrator (Otherwise Coldfusion fires it up using some randomly selected port and it could be closed which will mean it WILL NOT accept incoming requests) Here is the syntax:

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

You will have to restart Coldfusion as this is used by the JVM at startup.

In RDS Configuration I used the host name and port number of the App Server, not the Debug Server's port itself. So in my case I am running IIS which listens on port 80 so that is the host name and port number that I used.

Now the litmus test is if you can successfully connect, then test the debugger. If not, don't bother trying to debug an application. On a related note, I am having some issues with breakpoints, not being hit at times, so I am still concerned about it as a production solution, but I may be doing something wrong as well.

I have ofcourse condensed this, but the point is that it appears to be achievable. I am new to Coldfusion so I don't know much about the options but just wanted to point out some of the configurations that once I resolved them, was able to achieve line-by-line debugging.

CF9 and Eclipse 4.2 (Juno) with the CFEclipse pluggin - Apache on MacOs. I didn't have Adobe/RDS, but I downloaded the CF801 etension for eclipse and I moved the two RDS plugin files to the Eclipse plugin directory and restarted eclipse. After, that I had the Adobe/RDS configuration under Eclipse/preferences. I just configured the RDS on port 80, since I have coldfusion served by local Apache, tested connection and debug and now everything seems ok. thanks G.

I would recommend FusionDebug. It has a simpler setup and better user feature. http://www.fusion-debug.com/fd/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!