The debug wizard started the application with byebug. Remote debugging connects but no prompt is displayed

I have a wizard that launches several applications. I installed byebug server with port

#config/initializers/byebug.rb
if Rails.env.development?
  require 'byebug/core'
  #Byebug.wait_connection = true

  def find_available_port
    server = TCPServer.new(nil, 0)
    server.addr[1]
  ensure
    server.close if server
  end

  port = find_available_port

  puts "Starting remote debugger..."
  Byebug.start_server nil, port
  puts "Remote debugger on port #{port}"
end

I start the service using

$ foreman start

I see that the starting service number and port number are being reported in the terminal:

21:20:58 web.1       | => Ctrl-C to shutdown server
21:20:58 web.1       | Starting remote debugger...
21:20:58 web.1       | Remote debugger on port 54635

I run byebug with the option removed, and all I get is:

$ byebug -R localhost:54635
Connecting to byebug server...
Connected.

And that is my problem. "Connected." but without a beebug hint. Also, the breakpoint that I am on seems to be triggering, but remote debugging does nothing more.

Ideas? Anyone? Because I was looking for everything, and no one came across a similar problem.

My system settings:

  • OS X El Capitan 10.11.2
  • ruby 2.2.3
  • rails 4.1.14
  • byebug 8.2.1
  • team leader 0.78.0
+4
1

@jannolii, byebug commit. , :

Byebug.wait_connection = true

, , , . beebug gem 10.0, , .:)

0

Source: https://habr.com/ru/post/1624689/


All Articles