Rails项目调试: Aptana Stodio + buy-debug-ide.

来源:互联网 发布:罗技g303编程 编辑:程序博客网 时间:2024/05/16 09:37

Pre-Condition

  • Download and configure Aptana Stodio
  • Ensure ruby is installed

Debug rails project with Aptana Stodio

  • Install ruby-debug-ide
gem install ruby-debug-ide
  • Change directory to rails project root directory, and create script folder, and then copy bin/rails file to script folder
mkdir scriptcp bin/rails script
  • add server

    • Go Preferences panel
      这里写图片描述

    • Select your project.
      这里写图片描述

  • show server view

    • Click Window -> Show -> View -> Other
    • Select the Studio Servers
      这里写图片描述
  • run debug server
    这里写图片描述

  • set breakpoint and then you will go to the breakpoint
    这里写图片描述

这里写图片描述

原创粉丝点击