cannot load such file — script/rails : Getting this error while remote debugging through RubyMine

前端 未结 2 1819
春和景丽
春和景丽 2020-11-27 20:39

I am getting following error while remote debugging through RubyMine IDE.

$ bundle exec rdebug-ide --port 1234 -- script/rails server
Fast Debugger (ruby-deb         


        
2条回答
  •  庸人自扰
    2020-11-27 21:20

    You are using some weird debug gems, only the following are needed:

    • ruby-debug-base19x
    • ruby-debug-ide

    First, remove all the ruby-debug* gems, then install the required gems using the following commands:

    gem install ruby-debug-base19x --pre
    gem install ruby-debug-ide --pre
    

    You should get the following (or newer) versions:

    ruby-debug-base19x (0.11.30.pre10)
    ruby-debug-ide (0.4.17.beta9)
    

    Adjust your Gemfile to include only these two gems (except the app specific gems).

    If you are getting linecache19 related errors, install it as follows:

    curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
    gem install linecache19-0.5.13.gem
    

    @Anjan has contributed the complete Gemfile changes for debugging:

    gem 'linecache19', '>= 0.5.13', :git => 'https://github.com/robmathews/linecache19-0.5.13.git'
    gem 'ruby-debug-base19x', '>= 0.11.30.pre10'
    gem 'ruby-debug-ide', '>= 0.4.17.beta14'
    

    Don't forget to update the bundle.

提交回复
热议问题