Skip to content

Commit 426e4f5

Browse files
committed
Fix invoking pry on the proper context
1 parent b2a892a commit 426e4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/capybara/cuprite/driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def debug(binding = nil)
309309
Process.spawn(browser.process.path, debug_url)
310310

311311
if binding&.respond_to?(:pry)
312-
binding.pry
312+
Pry.start(binding)
313313
elsif binding&.respond_to?(:irb)
314314
binding.irb
315315
else

0 commit comments

Comments
 (0)