astashov / vim-ruby-debugger

Vim plugin for debugging Ruby applications (using ruby-debug-ide gem)
435 stars 36 forks source link

ruby_debugger not starting #67

Closed bdwetzel-sage closed 12 years ago

bdwetzel-sage commented 12 years ago

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.

bdwetzel-sage commented 12 years ago

ugh. Finally figured it out. Somehow the bin directory did not get copied over to .vim. Embarrassing.