Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby 1.9.2 + rvm + rails 3.0.7 + pathogen + macvim #48

Closed
devth opened this issue Apr 21, 2011 · 3 comments
Closed

ruby 1.9.2 + rvm + rails 3.0.7 + pathogen + macvim #48

devth opened this issue Apr 21, 2011 · 3 comments

Comments

@devth
Copy link

devth commented Apr 21, 2011

Hi,

I'm unable to get this to work - it never stops on my breakpoints. It's not clear from the README what server to even use. :Rdebugger doesn't start a server. Trying :Rdebugger 'script/rails server' or :Rdebugger 'script/rails start' just results in E77: Too many file names.

How can I use this?

Thanks

$ which rdebug-ide
/Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/bin/rdebug-ide

$ which ruby
/Users/trevorhartman/.rvm/rubies/ruby-1.9.2-p180/bin/ruby

Fast Debugger (ruby-debug-ide 0.4.9) listens on :39767
  /Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_load'
  /Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_program'
  /Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide:87:in `<top (required)>'
  /Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/bin/rdebug-ide:19:in `load'
  /Users/trevorhartman/.rvm/gems/ruby-1.9.2-p180/bin/rdebug-ide:19:in `<main>'
Uncaught exception: no such file to load -- script/server not found
@astashov
Copy link
Owner

Hmm, strange. It is sort of common problem there (E77: Too many file names), you are not alone, but I can't repeat that.
Try to use full path to the script/rails, i.e.:

:Rdebugger '/absolute/path/to/your/app/script/rails server'

@astashov
Copy link
Owner

Also, please try a fix, proposed by rweng, there:
https://github.com/rweng/vim-ruby-debugger/commit/5426b7db6f83e82a91363395a7dbbba8109edbe0

Thanks!

@astashov
Copy link
Owner

astashov commented May 1, 2011

Included rweng's pull request, that should fix the problem.

@astashov astashov closed this as completed May 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants