astashov/vim-ruby-debugger — Issue #67: ruby_debugger not starting
Author: bdwetzel-sage
Created: 2012-02-02 18:38:59+00:00
State: open

I am having trouble getting the debugger to work for me.

I am on ree 1.8.7 and rails 2.3.11 using macvim with mvim.

.vimrc=
let g:ruby_debugger_progname = 'mvim'
let g:ruby_debugger_debug_mode=1
let g:ruby_debugger_builtin_sender = 0

log=
Vim plugin, 13:36:38: Trying to find listener of port 39768
Vim plugin, 13:36:38: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 13:36:38: Found pid -
Vim plugin, 13:36:38: Trying to find listener of port 39768
Vim plugin, 13:36:38: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 13:36:38: Found pid -
... many times...
Vim plugin, 13:36:38: Trying to find listener of port 39768
Vim plugin, 13:36:38: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 13:36:38: Found pid -
Vim plugin, 13:36:38: PID - , found by 1000 repeats
Vim plugin, 13:36:38: Server PIDs are: rdebug-ide: 372, ruby_debugger.rb:
Vim plugin, 13:36:38: Debugger is successfully started
Vim plugin, 13:36:38: Adding 'start' to queue
Vim plugin, 13:36:38: Executing queue
Vim plugin, 13:36:38: Sending a message to ruby_debugger.rb: 'start'
Vim plugin, 13:36:38: Using system-wide Ruby to send message, the command is: ruby -e "require 'socket'; attempts = 0; a = nil; begin; a = TCPSocket.open'127.0.0.1', 39768); a.puts%q[start]);a.close; rescue Errno::ECONNREFUSED; attempts += 1; if attempts < 400; sleep 0.05; retry; else; puts'127.0.0.1:39768 can not be opened'); exit; end; ensure; a.close if a && !a.closed?; end; "
Vim plugin, 13:36:58: Command has returned following output: 127.0.0.1:39768 can not be opened
Vim plugin, 13:36:58: Can't send a message to rdebug - port is not opened

any help would be greatly appreciated.