开发者

Debugging Rails application with Textmate

开发者 https://www.devze.com 2023-01-05 08:07 出处:网络
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 k

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消