astashov / vim-ruby-debugger

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

How to debug the debugger? #53

Open ginty opened 13 years ago

ginty commented 13 years ago

Hi, This seems like it should be the best plugin ever, if only I could get it to do anything.

I've followed all the instructions and everything seems to work, except there is no rails server process started. I'm on Ubuntu, RVM, 1.9.2, rails 3.

which rdebug-ide

/home/stephen/.rvm/gems/ruby-1.9.2-p180@salonsquirrel/bin/rdebug-ide

:Rdebugger

Loading debugger... Debugger started

ps aux | grep ruby

stephen 15207 1.2 0.5 18248 10944 ? Sl 20:56 0:00 ruby /home/stephen/Dropbox/config/.vim/bin/ruby_debugger.rb 127.0.0.1 39767 39768 gvim GVIM /home/stephen/Dropbox/config/.vim/tmp/ruby_debugger posix 0 /home/stephen/Dropbox/config/.vim/tmp/ruby_debugger_log

There is no server process started, the ruby_debugger_log is empty, where can I go from here?

Really appreciate any help you can give!

Thanks a lot.

astashov commented 13 years ago

Hi!

Please add let g:ruby_debugger_debug_mode = 1 to ~/.vimrc, restart Vim, and try to do that again. Then, send me logs from ~/.vim/tmp or ~/.vim/bundle/vim-ruby-debugger/tmp (if you use pathogen).

Thanks!

lightsblue commented 13 years ago

I'm having a similar issue as described above. I enabled logging, and found this in ruby_debugger_output:

Fast Debugger (ruby-debug-ide 0.4.16, ruby-debug-base 0.10.4) listens on 127.0.0.1:39767 /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/lib/ruby-debug-ide.rb:112:in debug_load' /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/lib/ruby-debug-ide.rb:112:indebug_program' /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/bin/rdebug-ide:87 /opt/local/bin/rdebug-ide:19:in `load' /opt/local/bin/rdebug-ide:19 Uncaught exception: no such file to load -- /Users/nvihinen/workspace/receptoreditor-copy/script/server

So I tried explicitly doing :Rdebugger "/Users/nvihinen/workspace/receptoreditor-copy/script/rails server" and got this: Error detected while processing function 6..42_get_escaped_absolute_path

regedarek commented 12 years ago

I have the same issue