Method: Ferrum::Browser#debug
- Defined in:
- lib/ferrum/browser.rb
#debug(bind = nil) ⇒ void
This method returns an undefined value.
Opens headless session in the browser devtools frontend.
259 260 261 262 263 264 265 266 267 268 |
# File 'lib/ferrum/browser.rb', line 259 def debug(bind = nil) ::Process.spawn(process.path, debug_url) bind ||= binding if bind.respond_to?(:pry) Pry.start(bind) else bind.irb end end |