How do you guys debug your Rails apps? I have seen a link to datanoise.com that is supposed to show how to use ruby-debug with Textmate using a bundle.. but it looks like the page is down. Does anyone know ho开发者_C百科w to set this up? Thanks!
@johnmcaliley - I debug my rails apps by simply adding 'debugger' to my code:
method_call
variable = method_call + 5
debugger
#more code
Then start your rails web server with the --debugger option:
script/server --debugger
This requires you have a gem installed, ruby-debug, I think. Check out this screencast for a good demo: http://railscasts.com/episodes/54-debugging-with-ruby-debug
However, it doesn't hook into textmate.
精彩评论