用Aptana Studio 3 调试Ruby on Rails

1. 检查是否安装ruby-debug-ide

$ gem list

2. 如果没有安装,则安装 ruby-debug-ide

$ gem install ruby-debug-ide

3. 在Aptana Studio 3中打开你的项目, 开启Debug Server: App Explorer -> Gear图标的下拉菜单 -> Debug Server


debug rails with Aptana studio 3 4.在你的代码文件(如index.html.erb)中设置一个断点
5. 在浏览器中访问 http://localhost:3000/<your path>/index.html
6. Aptana会询问是否打开Debug perspective. 当然要打开. 你能看见server停在断点处。

201205112119.jpg

posted on 2012-05-11 21:20  VinceOniPhone  阅读(3233)  评论(0编辑  收藏  举报

导航