2009年1月5日星期一

Debugging Ruby and ROR

1,install rdebug, sudo gem install ruby-debug
2,command line for debugging ruby file , rdebug rubyscript.rb
3,tips for debugging rails app , insert 'debugger' statement into your code where the code you want to check
4,run ./script/server --debugger,then the app will trap into rdebug when execution flow encounters the 'debugger' statement.

没有评论: