For long time now (~8 years) I've defined a debugging method called "yell", in many of my apps, for spitting out messages in times of heavy debugging. So far, there have been no name space conflicts, thanks to the off-the-wall name. Anyway, here what I add to any of my Rails projects where complex logic might require this type of brute-force debugging:
config/environment.rb:def yell(msg) # stupid simple logging: f = File.open(File.expand_path(File.dirname(__FILE__) + "/../log/yell.log"),"a") f.puts msg f.close end
What do you do?




