vim-ruby-debugger
vim-ruby-debugger copied to clipboard
`:Rdebugger` does not return
Using Vim 7.4 from Debian Wheezy/stable I installed vim-ruby-debugger
(Pathogen) and installed the Gem debugger-xml in the development section. rdebug-vim
and rdebug-ide
are in my path.
With vim --servername VIM
, unfortunately the :Rdebugger
command does not seem to succeed. Only the following is written and does not return.
Loading debugger...
Hitting enter and entering a breakpoint the following is printed.
Error detected while processing function 15..2..<SNR>33_send_message_to_debugger:
line 11:
Errno::ENOENT: No such file or directory - /tmp/vSFnBPl/1
The socket does not exist.
$ more ~/.vim/bundle/vim-ruby-debugger/tmp/ruby_debugger_log
Vim plugin, 00:34:54: Executing :Rdebugger...
Vim plugin, 00:34:54: Initializing Server object
Vim plugin, 00:34:54: Stopping, pid is:
Vim plugin, 00:34:54: Starting Server, command: "'/home/joe/giantmonkey/dashboard-application/script/rails' server"
Vim plugin, 00:34:54: Executing command: rdebug-vim --file /home/joe/.vim/bundle/vim-ruby-debugger/tmp/ruby_debugger --output /home/joe/.vim/bundle/vim-ruby-debugger/tmp/ruby_debugger_output --socket /tmp/vSFnBPl/1 --logger_file /home/joe/.vim/bundle/vim-ruby-debugger/tmp/ruby_debugger_log --debug_mode 1 --vim_executable vim --vim_servername VIM --separator ++vim-ruby-debugger-separator++ -- '/home/joe/giantmonkey/dashboard-application/script/rails' server
debugger-xml, 00:34:55 : Going to daemonize
Vim plugin, 00:34:55: PID: from /home/joe/.rvm/gems/ruby-2.0.0-p247@toolbox/bin/ruby_noexec_wrapper:14:in `<main>'
Vim plugin, 00:34:55: Waiting for starting debugger...
Vim plugin, 00:36:50: Trying to toggle a breakpoint in the file /home/joe/giantmonkey/dashboard-application/app/controllers/master_controller.rb:12
Vim plugin, 00:36:50: There is no already set breakpoint, so create new one
Vim plugin, 00:36:50: Set breakpoint to: /home/joe/giantmonkey/dashboard-application/app/controllers/master_controller.rb:12
Vim plugin, 00:36:50: Added Breakpoint object to RubyDebugger.breakpoints array
Vim plugin, 00:36:50: Server is running, so add command to Queue
Vim plugin, 00:36:50: Adding 'break /home/joe/giantmonkey/dashboard-application/app/controllers/master_controller.rb:12' to queue
Vim plugin, 00:36:50: Executing queue
Vim plugin, 00:36:50: Sending a message to ruby_debugger.rb: 'break /home/joe/giantmonkey/dashboard-application/app/controllers/master_controller.rb:12'
Vim plugin, 00:37:30: Executing :Rdebugger...
Vim plugin, 00:37:30: Initializing Server object
Vim plugin, 00:37:30: Stopping, pid is: from /home/joe/.rvm/gems/ruby-2.0.0-p247@toolbox/bin/ruby_noexec_wrapper:14:in `<main>'
Vim plugin, 00:37:30: Starting Server, command: "'/home/joe/giantmonkey/dashboard-application/stop' "
Vim plugin, 00:37:30: Executing command: rdebug-vim --file /home/joe/.vim/bundle/vim-ruby-debugger/tmp/ruby_debugger --output /home/joe/.vim/bundle/vim-ruby-debugger/tmp/ruby_debugger_output --socket /tmp/vSFnBPl/5 --logger_file /home/joe/.vim/bundle/vim-ruby-debugger/tmp/ruby_debugger_log --debug_mode 1 --vim_executable vim --vim_servername VIM --separator ++vim-ruby-debugger-separator++ -- '/home/joe/giantmonkey/dashboard-application/stop'
debugger-xml, 00:37:30 : Going to daemonize
Vim plugin, 00:37:30: PID: from /home/joe/.rvm/gems/ruby-2.0.0-p247@toolbox/bin/ruby_noexec_wrapper:14:in `<main>'
Vim plugin, 00:37:30: Waiting for starting debugger...
Vim plugin, 00:37:50: Stopping, pid is: from /home/joe/.rvm/gems/ruby-2.0.0-p247@toolbox/bin/ruby_noexec_wrapper:14:in `<main>
Your ruby version is 2.0, debugger is still for the lower version. Wait for updates...