Comments (9)
Make sure you have two processes running after :Rdebugger command:
- rdebug-ide
- ruby ruby_debugger.rb
Please, show output of all files in ~/.vim/tmp directory.
from vim-ruby-debugger.
When I run :Rdebugger first time it starts two processes, but after a few seconds one of them shuts down. I can't tell wich one of them is ruby_debugger, but the one that keeps running has multiple ports open (39768, 39767, 56590).
When I run :Rdebugger second time both processes keep running. The new one has only one port open (39767).
ruby_debugger file contains this string http://gist.github.com/118463
There are two more files – ruby_debugger_log and ruby_debugger_output – but they are empty.
from vim-ruby-debugger.
Hmm... could you make sure what process exactly shuts down? It can help.
Meanwhile, I'll try to debug Sinatra on my local desktop.
from vim-ruby-debugger.
The one with one open port.
from vim-ruby-debugger.
Looks like it doesn't work for me too. :(
Please, try to set breakpoint to some first string (e.g., to require 'sinatra') before :Rdebugger command. And then, execute :Rdebugger. It should stop on this breakpoint. (as for me, the debugger behaves this way).
But after this, if I press 'continue', it will not run the server. Strange... Maybe problem in the ruby-debug-ide gem. I'll try to debug manually, by this gem.
from vim-ruby-debugger.
I've tried to debug it manually. I run:
[anton@localhost sinatra]$ rdebug-ide -p 39767 -- sinatra_app.rb
Fast Debugger (ruby-debug-ide 0.4.5) listens on localhost:39767
And in other console, run irb and execute:
[anton@localhost sinatra]$ irb
irb(main):001:0> require 'socket'
=> true
irb(main):002:0> a = TCPSocket.open('localhost', 39767)
=> #
irb(main):003:0> a.puts('start')
After this, rdebug-ide just completed its work. Sinatra didn't run the server.
from vim-ruby-debugger.
So at least we know the reason why it doesn't stop at breakpoints. It simply never runs.
from vim-ruby-debugger.
Yeah... But if you want, you can set breakpoint to 'require 'sinatra'', run :Rdebugger, and try to understand why server doesn't start. Or just to make sure that debugger is working. :)
from vim-ruby-debugger.
Seems to work now, with latest ruby-debug-ide and Sinatra 1.0.
from vim-ruby-debugger.
Related Issues (20)
- Screenshot is broken HOT 4
- Rdebugger calls vim instead of mvim and fails --servername HOT 5
- Debugger is not running HOT 22
- RdbStop not working HOT 10
- Caught deadly signal ABRT HOT 2
- Debuger not start HOT 2
- Not hit breakpoint on Linux HOT 50
- debugger errors at every command HOT 5
- Debugger terminates HOT 10
- "VIM not found" debugger wont start server HOT 8
- Can't debug because 'builder' gem is loaded HOT 7
- `:Rdebugger` does not return HOT 1
- Windows support HOT 2
- Customize window positions (variables, breakpoints, etc..)
- Weird error HOT 2
- Is it working under ruby 2.0.0? HOT 6
- Не запускается debugger HOT 4
- Могу ли я использовать дебаггер, когда я запускаю задачи через tpope/vim-rake ? HOT 1
- Don't running RdbTest HOT 2
- Unable to run a simple rb file and getting an error trying to run debugger
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-ruby-debugger.