Copy link to clipboard
Copied
I have some coldfusion code to invoke java code. How can I integrate test it from coldfusion to java in Eclipse? For example, debug step by step from coldfusion code to java code.
Thanks in advance.
Copy link to clipboard
Copied
As far as I know you can't debug ColdFusion code in Eclipse (yet?) On
the other hand I never needed step debugging with CF (a combination of
cfdump, cftrace and/or cflog always worked for me).
ColdFusion and Java integrated debugging (stepping in/out of CF code
into Java code) is almost impossible I would say because at that point
you would need to debug ColdFusion's internals (type conversion
routines, etc, etc)
Mack
Copy link to clipboard
Copied
Hi Mack,
Thanks a lot for your quick response.
I found some links about coldfusion debug in eclipse before, but it didn't mention the integrate test with Java:
http://www.ibm.com/developerworks/opensource/library/os-eclipse-cfeclipse/index.html
http://www.adobe.com/devnet/coldfusion/articles/debugger_print.html
For some cases, our application passes a complicated data structure from coldfusion to java. It is time consuming to setup those data structure on the java side to test java code. That's why I want stepping out of CF code into Java code.
It seems the coldfusion(ear) is on the top of J2EE container. It's based on Java.
Thanks,
George
Copy link to clipboard
Copied
George,
I didn't know about the debugging features in CFEclipse, thanks for the info.
Regarding integrated CF and Java debugging I'm pretty sure there's no
solution at this point because that would mean that the CF server
needs to contain a Java debugger (CF debugging in Eclipse seems to
work in cooperation with the CF server, you would need the same
cooperation from the CF server when stepping into Java code).
Mack
Copy link to clipboard
Copied
Thanks for the update, Mack.
George