title: cannot load such file -- script/rails : Getting this error while remote debugging through RubyMine
body: <p>I am getting following error while remote debugging through RubyMine IDE.</p>
  
  <pre><code>$ bundle exec rdebug-ide --port 1234 -- script/rails server
  Fast Debugger (ruby-debug-ide 0.4.9) listens on :1234
      /home/amit/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_load'
      /home/amit/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_program'
      /home/amit/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide:87:in `&lt;top (required)&gt;'
      /home/amit/.rvm/gems/ruby-1.9.3-p125/bin/rdebug-ide:19:in `load'
      /home/amit/.rvm/gems/ruby-1.9.3-p125/bin/rdebug-ide:19:in `&lt;main&gt;'
  Uncaught exception: cannot load such file -- script/rails
  </code></pre>
  
  <p>I followed <a href="http://rails.vandenabeele.com/blog/2011/12/21/installing-ruby-debug19-with-ruby-1-dot-9-3-on-rvm/" rel="nofollow">this link</a> to install require gems for remote debug.</p>
  
  <p>Here is Gemfile configuration for remote debug</p>
  
  <pre><code>#To Debug
    gem 'linecache19', '0.5.13', :path =&gt; "~/.rvm/gems/ruby-1.9.3-p125/gems/linecache19-0.5.13/"
    gem 'ruby-debug-base19', '0.11.26', :path =&gt; "~/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-base19-0.11.26/"
    gem 'ruby-debug19', :require =&gt; 'ruby-debug'
    gem 'ruby-debug-ide19'
  </code></pre>
  
  <p>The application is running with <strong>Ruby 1.9.3</strong> and <strong>Rails 3.0.11</strong>.</p>