Is there an easy way to run code in sugar?

Hi,  It seems like it takes longer to develop with sugarCRM than just making a application from scratch.  Are there ways of running groups of code without needing to rebuild the application and clicking around to see if something as taken effect?  For example if I am using the beanfactory class to get an existing record with an specific ID can I echo that out to the console?

Best Regards

James Palmisano