ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.12k stars 124 forks source link

Hangs with Ferrum gem #295

Open molfar opened 3 years ago

molfar commented 3 years ago

It does not works well with Ferrum gem. After binging.break it loses connection with CDP and raises timeout error.

browser = Ferrum::Browser.new
browser.go_to("https://google.com")
binding.break
ko1 commented 3 years ago

Could you try v1.2.0?

molfar commented 2 years ago
require 'bundler/setup'
require 'ferrum'
require 'debug'

browser = Ferrum::Browser.new headless: false
browser.go_to("https://google.com")
binding.break
=>   7| binding.break
=>#0    <main> at main.rb:7
(rdbg) browser.screenshot(path: "google.png")    # ruby
eval error: Ferrum::TimeoutError

I see the same error with 1.2.0 and ferrum 0.11. Here is my related issue https://github.com/rubycdp/ferrum/issues/195

ko1 commented 2 years ago

???

did you try browser.screenshot on debug console? or another issue described on the first description?

molfar commented 2 years ago

@ko1 I tried both browser.screenshot and browser.go_to. The issue is that all interaction with browser after binding.break stop working.