Remote debugging failure for 4.0 Beta 3 (build 113.2)
Having a problem while trying to work with remote debugging on a local server. I like to run my app from the console via foreman in a rake task that streamlines the procedure to match heroku better.
My problem is that after getting ruby-debug19 working with MRI 1.9.3 on rvm, I'm not seeing a way to get RubyMine to work with it.
I followed these:
- http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
- http://rails.vandenabeele.com/blog/2011/12/21/installing-ruby-debug19-with-ruby-1-dot-9-3-on-rvm
And I have "Debugger.start_remote" in development.rb.
`rdebug -c` seems to connect fine now, however when I run the little green bug on the blue play button, I get the following:
Cannot connect to the debugged process at port 61273 in 10s:
Error Output:
/Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- /Users/username/.rvm/gems/ruby-1.9.3-p0@all/bundler/gems/linecache19-37c8627511f3/lib/../lib/trace_nums19 (LoadError)
from /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/username/.rvm/gems/ruby-1.9.3-p0@all/bundler/gems/linecache19-37c8627511f3/lib/tracelines19.rb:12:in `rescue in '
from /Users/username/.rvm/gems/ruby-1.9.3-p0@all/bundler/gems/linecache19-37c8627511f3/lib/tracelines19.rb:8:in `'
from /Users/username/.rvm/gems/ruby-1.9.3-p0@all/bundler/gems/linecache19-37c8627511f3/lib/tracelines19.rb:6:in `'
from /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/username/.rvm/gems/ruby-1.9.3-p0@all/bundler/gems/linecache19-37c8627511f3/lib/linecache19.rb:69:in `'
from /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/username/.rvm/gems/ruby-1.9.3-p0@all/bundler/gems/ruby-debug-base19-f5862e56da3d/lib/ruby-debug-base.rb:3:in `'
from /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Applications/RubyMine EAP.app/rb/gems/debug_preloader.rb:1:in `'
from /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
It did try to install some gems initially so I'm thinking that perhaps RubyMine tried to install some things conflicting versions of the debug libs since there are issues with 1.9.3 normally without the special versions?
Here is the idea.log: http://pastebin.com/raw.php?i=rPVeFHXU
Also thought including the Gemfile.log might be helpful to see all gems and their versions: http://pastebin.com/raw.php?i=URAhqBsp
请先登录再写评论。
And an FYI Dennis' suggestion of:
had problems with this. I ended up having to take these other approaches as I could never get rdebug to work due to the errors noted in the other posts I first shared. So it would seem that things should work beautifully, but RubyMine isn't detecting the gems properly or using the correct gems? Just not sure here what to think for sure as I'm not entirely clear on how RubyMine makes it's connection.
I think it's better to stay in original thread, instead of creating new one.
Thought this was slightly different since it's not using the exact same gems.
Please remove all debug-related gems from the Gemfile and comment out "Debugger.start_remote" from development.rb.
The following gems should be installed on both local and remote machines:
linecache19 (0.5.13)
ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta8)
Also, I would recommend uninstalling ruby-debug-base19, because it can conflict with ruby-debug-base19x gem