Skip to content
This repository

Cannot connect to debugger using Rails 3 and RVM #73

Open
mrthebob opened this Issue June 02, 2012 · 0 comments

1 participant

Mike B
Mike B

Hi! I'm using rvm and Rails 3 (with Ruby 1.8.7), and I'm trying to get the debugger going. I've done:

gem install ruby-debug-ide

I also have the latest vim-ruby-debugger

I've tried all sorts of combinations with the :Rdebugger command (like :Rdebugger 'script/rails server', etc etc). If I look at the log file I get a whole bung of this:

Vim plugin, 17:21:13: Executing :Rdebugger...
Vim plugin, 17:21:13: Initializing Server object, with variables: hostname: 127.0.0.1, rdebug_port: 39767, debugger_port: 39768, runtime_dir: /home/muser/.vim, tmp_file: /home/muser/.vim/tmp/ruby_debugger, output_file: /home/muser/.vim/tmp/ruby_debugger_output
Vim plugin, 17:21:13: Starting Server, command: "'/var/www/rails/scorekeepers/script/server' webrick"
Vim plugin, 17:21:13: Trying to kill all old servers first
Vim plugin, 17:21:13: Trying to find PID of process on 39767 port, must_get_pid = 0
Vim plugin, 17:21:13: Trying to find listener of port 39767
Vim plugin, 17:21:13: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:13: Found pid - 
Vim plugin, 17:21:13: PID - , found by 0 repeats
Vim plugin, 17:21:13: Trying to find PID of process on 39768 port, must_get_pid = 0
Vim plugin, 17:21:13: Trying to find listener of port 39768
Vim plugin, 17:21:13: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:13: Found pid - 
Vim plugin, 17:21:13: PID - , found by 0 repeats
Vim plugin, 17:21:13: Servers are killed, trying to start new servers
Vim plugin, 17:21:13: Executing command: rdebug-ide  -p 39767 -- '/var/www/rails/scorekeepers/script/server' webrick > /home/muser/.vim/tmp/ruby_debugger_output 2>&1 &
Vim plugin, 17:21:13: Executing command: ruby /home/muser/.vim/bin/ruby_debugger.rb 127.0.0.1 39767 39768 gvim GVIM "/home/muser/.vim/tmp/ruby_debugger" posix 1 /home/muser/.vim/tmp/ruby_debugger_log &
Vim plugin, 17:21:13: Now we need to store PIDs of servers, retrieving them: 
Vim plugin, 17:21:13: Trying to find PID of process on 39767 port, must_get_pid = 1
Vim plugin, 17:21:13: Trying to find listener of port 39767
Vim plugin, 17:21:13: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:13: Found pid - 
Vim plugin, 17:21:13: Trying to find listener of port 39767
Vim plugin, 17:21:13: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:13: Found pid - 
Vim plugin, 17:21:13: Trying to find listener of port 39767
Vim plugin, 17:21:13: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:13: Found pid - 4845
Vim plugin, 17:21:13: PID - 4845, found by 2 repeats
Vim plugin, 17:21:13: Trying to find PID of process on 39768 port, must_get_pid = 1
Vim plugin, 17:21:13: Trying to find listener of port 39768
Vim plugin, 17:21:13: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:14: Found pid - 
Vim plugin, 17:21:14: Trying to find listener of port 39768
Vim plugin, 17:21:14: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:14: Found pid - 
Vim plugin, 17:21:14: Trying to find listener of port 39768
Vim plugin, 17:21:14: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:14: Found pid - 
Vim plugin, 17:21:14: Trying to find listener of port 39768
Vim plugin, 17:21:14: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:14: Found pid - 
Vim plugin, 17:21:14: Trying to find listener of port 39768
Vim plugin, 17:21:14: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 17:21:14: Found pid - 

I can't seem to figure this out. Any hints?

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.