-
-
Notifications
You must be signed in to change notification settings - Fork 427
Hangs when debugging with byebug #718
Comments
We were just noticing the same issue after updating byebug from 2.7.0 to 3.5.1 and pry-byebug from 1.3.3 to 2.0.0.
|
Fascinating. We use
|
I did some more debugging. It's challenging because there's no way I can figure out to step through the methods while in the byebug context. The code goes through this roughly: Capybara::Session#html In this last method, an IO::WaitReadable is raised and the method hangs on this code in the rescue block:
The code never moves past this |
Interesting. The It's also interesting that this behavior is exhibited with byebug itself, not just with pry. I don't know enough about the internals of either to speculate as to why that behavior changed between releases. Hopefully an upstream maintainer can help shed some light on the issue. |
Hi guys, can you try to reproduce this using Code using threads has never been really "debuggable", it has sporadically worked but was never really supported. Nevertheless, this has changed recently and it should be working fine against last master. If not, please open an issue in |
Hey @deivid-rodriguez. A quick test shows this is still an issue with byebug master. However, I'm still working on extracting a simple example test case. I'll try to find a simple way to trigger this behavior. |
@mhoran that sounds great! |
Issue opened: deivid-rodriguez/byebug#115. |
@mhoran This can now be closed, right? |
👍 |
When using
byebug
'sdebugger
statement in a feature spec, and then attempting tofind
any element, the operation will hang. This is reproduced on several projects usingcapybara-webkit
1.3.1
and1.4.1
. In fact even trying to printpage.body
in the debugger repl hangs.pry
and usingbinding.pry
for debugging works, but it's strange thatbyebug
doesn't.The text was updated successfully, but these errors were encountered: