Photo credits: Matt Steen

ColdFusion Debugger in Eclipse

I have been working for a bit on getting ColdFusion Debugger running for CF 8. It's really nice, beats the heck out of cfdump. Being able to set a breakpoint is nice, and works more fluidly with the way I debug my Flex apps.

The biggest obstacle I had in setting this up was getting the debugger to actually show me anything. Since I am also learning ANT, and work with subversion, I have my working copy of code outside the webroot and am using an ANT script to build the project to the directory in the web. I setup the debugger and RDS and everything seemed to test fine, but I couldn't get it to debug for the life of me!

The thought occurred to me that maybe I actually had to use the file in the web to set breakpoints and debug with. I setup a new project which pointed to the web, opened the file I was trying to debug, set my breakpoints and browsed to the page. CF Debugger worked the first try!

So, if you've tried to use CF Debugger and had similar issues, or plan on using it in the future, just remember that you actually have to be debugging the file from the web directories and not a working copy outside of the web

Comments
Ram Kulkarni's Gravatar You can set breakpoints on files you got from subversion, and which are not in wwwroot, by specifying debug mappings in Eclipse. Go to Preference->ColdFusion->Debug Mappings. Add a mapping where 'Eclipse Path' point to the folder outside wwwroot and 'ColdFusion Path' points to the corresponding folder under wwwroot.
# Posted By Ram Kulkarni | 3/24/08 2:48 AM
BlogCFC 5.8.001 © Ray Camden