Wednesday, May 23, 2012

CF10 ORM debugging output on OS X

Ok, I've spent several hours trying to figure out the best way to monitor my cform debugging info on OS X.  I used to just launch cf from the console and all the ORM debugging info would be logged in the window.  Now that jrun is gone, I was not seeing any output.

I did find that the debugging info was being sent to the hibernate.log file in my cfusion folder.  I guess I could live with that if I had a nice tail viewer.  That would have been a no brainer if I still used cfbuilder, but I got soooo tired of waiting for it to crank up and dealing with all the project configuration that now I primarily use Sublime Text 2 as my main editor.

Never fear, there is a great tool already included with OS X.  In fact, all you have to do is just double click on the log file and it will fire up in the OS X terminal.  Hit clear display and boom.  You have a tail viewer with content from your current session.  It works great and you can scroll around even easier than in the terminal.