当我调试一个简单的 rails 应用程序时(只运行脚手架命令)。Rubymine 在调试器窗口中不显示任何变量。我已经在 Rubymine 上安装了 ruby-debug-ide 0.4.30, debase 0.1.3 gems,我正在使用 ubuntu 14.04, ruby 2.2, rails 4.2.2, rbenv, rubymine 7.1。
提前致谢。
更新:问题解决了!!只需注释掉'byebug' gem。
当我调试一个简单的 rails 应用程序时(只运行脚手架命令)。Rubymine 在调试器窗口中不显示任何变量。我已经在 Rubymine 上安装了 ruby-debug-ide 0.4.30, debase 0.1.3 gems,我正在使用 ubuntu 14.04, ruby 2.2, rails 4.2.2, rbenv, rubymine 7.1。
提前致谢。
更新:问题解决了!!只需注释掉'byebug' gem。
To help you here are some steps to follow in order to debug in your rubyMine.
First Install dubug gems localy:
Download the following gems:
Place the downloaded gems into a file called gems
cmd
consol [clic on start button, select Ruby then select Start command prompt with Ruby]
C:\Desktop\gems
] write the command: cd C:\Desktop\gems
then clic enter.gem install --local debugger-ruby_core_source-1.3.8.gem
gem install --local ruby-debug-base19x-0.11.30.pre15.gem
Second try the exact same steps with Ruby 1.9 version instead of 2.2
Now if that doeasnt work with the 2.2 Ruby version try it with the version 1.9. and hopefuly it will work for you because it did with me.