Giter Club home page Giter Club logo

Comments (9)

astashov avatar astashov commented on May 29, 2024

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.

skammer avatar skammer commented on May 29, 2024

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.

astashov avatar astashov commented on May 29, 2024

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.

skammer avatar skammer commented on May 29, 2024

The one with one open port.

from vim-ruby-debugger.

astashov avatar astashov commented on May 29, 2024

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.

astashov avatar astashov commented on May 29, 2024

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.

skammer avatar skammer commented on May 29, 2024

So at least we know the reason why it doesn't stop at breakpoints. It simply never runs.

from vim-ruby-debugger.

astashov avatar astashov commented on May 29, 2024

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.

astashov avatar astashov commented on May 29, 2024

Seems to work now, with latest ruby-debug-ide and Sinatra 1.0.

from vim-ruby-debugger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.