-
Notifications
You must be signed in to change notification settings - Fork 36
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
Does not stop at breakpoints if used within terminal MacVim #66
Comments
Frankly, never tried to run it this way. Will try to take a look at that this weekend, thanks for reporting. :) |
So is this still an issue? Debating if I want to try and play with this awesome looking plugin. |
Umm, sorry, still didn't check/fix that issue. :( |
hey @astashov , I think this is exactly the same issue I was running into earlier today. |
I think this is an implementation issue in MacVim. From (http://vim.1045645.n5.nabble.com/Is-it-possible-to-start-MacVim-without-GUI-but-as-server-td4718233.html):
|
As pointed above, the terminal MacVim cannot act like a server - for that you'll need the GUI MacVim. However, you can install the standard Vim (not MacVim) and it will work if it's compiled with support to client/server feature. I tried here and it works nicely with vim-ruby-debugger in the terminal - the only annoying bit is it starts X11. :-) |
In .vimrc I have:
I launch debugger like this:
Server and debugger starts successfully. Then I set a breakpoint, and the following output appears in ruby_debugger_log:
Vim plugin, 01:26:07: Trying to toggle a breakpoint in the file /users/user/Projects/sample/app/controllers/dashboard_controller.rb:11
Vim plugin, 01:26:07: There is no already set breakpoint, so create new one
Vim plugin, 01:26:07: Set breakpoint to: /users/user/Projects/sample/app/controllers/dashboard_controller.rb:11
Vim plugin, 01:26:07: Added Breakpoint object to RubyDebugger.breakpoints array
Vim plugin, 01:26:07: Trying to find PID of process on 39767 port, must_get_pid = 0
Vim plugin, 01:26:07: Trying to find listener of port 39767
Vim plugin, 01:26:07: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 01:26:07: Found pid - 67671
Vim plugin, 01:26:07: PID - 67671, found by 0 repeats
Vim plugin, 01:26:07: Trying to find PID of process on 39768 port, must_get_pid = 0
Vim plugin, 01:26:07: Trying to find listener of port 39768
Vim plugin, 01:26:07: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 01:26:07: Found pid - 67673
Vim plugin, 01:26:07: PID - 67673, found by 0 repeats
Vim plugin, 01:26:07: Server is running, so add command to Queue
Vim plugin, 01:26:07: Adding 'break /users/user/Projects/sample/app/controllers/dashboard_controller.rb:11' to queue
Vim plugin, 01:26:07: Executing queue
Vim plugin, 01:26:07: Sending a message to ruby_debugger.rb: 'break /users/user/Projects/sample/app/controllers/dashboard_controller.rb:11'
Vim plugin, 01:26:07: Using Vim built-in Ruby to send message
so it seems to be ok.
But breakpoint is never hit when when I run vim like this:
here vim is the alias to mvim (but runs in terminal, not gui version).
I've tried to set
g:ruby_debugger_progname
tovim
,mvim
,Vim
, but it didn't work.Though it appears to work within gui version of macvim.
BTW I use ree-1.8.7-2011.03 via RVM, Rails 3.0.5, ruby-debug 0.10.4, ruby-debug-base 0.10.4, ruby-debug-ide 0.4.16
The text was updated successfully, but these errors were encountered: