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

'127.0.0.1:39768 can not be opened' in MacVim #71

Closed
anshumans opened this issue May 18, 2012 · 6 comments
Closed

'127.0.0.1:39768 can not be opened' in MacVim #71

anshumans opened this issue May 18, 2012 · 6 comments

Comments

@anshumans
Copy link

I'm using MacVim and trying to debug using ruby-1.9.3-p0, and when I start Rdebugger on any .rb file, it says "Loading debugger ..." for a while before getting the following error:

127.0.0.1:39768 can not be opened
Error detected while processing function 6..2..25_send_message_to_debugger
line 33:
SystemExit: (eval):17:in 'exit': exit

Any idea what the issue might be?

@astashov
Copy link
Owner

Nope, no idea. :(
Could you please:

  1. Try to use 1.9.2
  2. Make sure you have let g:ruby_debugger_debug_mode = 1 in your .vimrc, then reload MacVim and try again with :Rdebugger. Then, you will be able to find logs for debugger in ~/.vim/bundle/vim-ruby-debugger/tmp/ruby_debugger_logs. You can share them with me. :)

@anshumans
Copy link
Author

Ok, I think I figured out the problem. It didn't have to do with the plugin at all, it was an issue with currently with using ruby-debug-base19 and 1.9.3 (http://stackoverflow.com/questions/9155681/rails-3-2-0-rspec-debugger-not-working). Downloading the right versions of linecache19 and ruby-debug-base19 has gotten me past this issue now.

Quick question before I close: is there a way to pass an include path to Rdebugger? I need that to debug a specific .rb file.

@astashov
Copy link
Owner

Just do:

:Rdebugger 'path/to/your/file.rb'

You may avoid quotes if there are no whitespaces in the path.

@anshumans
Copy link
Author

Sorry, I wasn't clear. I meant, is there a way to pass an include path, similar to '-I' that's passed to ruby, to Rdebugger?

@astashov
Copy link
Owner

Oh, sorry. No, there is no way to do that for now. :(
As a workaround, you can add these dirs manually right in your Ruby file, into $LOAD_PATH. Not sure if it helps you...

@anshumans
Copy link
Author

ok, thanks!

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