ruby-debug / debase

BSD 2-Clause "Simplified" License
209 stars 32 forks source link

Version 0.2.3 hangs on page load after hitting breakpoint #78

Closed rockorequin closed 5 years ago

rockorequin commented 5 years ago

I have a Netbeans 11 / Rails 5.0.2 / ruby-debug-ide 0.7.0 project.

I find that with debase 0.2.3, the debugger hangs with this sequence:

If there is no breakpoint, the page loads correctly multiple times.

This is a regression, because debase 0.2.3-beta5 doesn't have this problem.

ViugiNick commented 5 years ago

@rockorequin Am I right, that debugger should stop on the breakpoint after refreshing the page in a browser, but it wasn't?

rockorequin commented 5 years ago

Yes, the debugger should stop on the breakpoint. But I think it freezes before even that point, because none of the log messages you'd expect to see prior to hitting the breakpoint appear. Also, if I go to another page where there isn't a breakpoint to hit, that page never loads.

ViugiNick commented 5 years ago

@rockorequin I managed to reproduce it

ViugiNick commented 5 years ago

@rockorequin @thestelz Could you please check debase gem version from this repo: https://github.com/ViugiNick/debase?

rockorequin commented 5 years ago

@ViugiNick Thanks, debase from that repo looks like it fixes the problem.

iggycoder commented 5 years ago

Just a side note: Had a similar behavior with VSCode 1.36.1 and ruby-debug-ide 0.7.0, debase 0.2.3 After a successful break point cycle of stepping in and continuing the execution, a second break point cycle was not possible anymore. The server stopped responding completely (happened with Puma and Webrick). Only chance was to disconnect the debugger. Debase from @ViugiNick repo fixes the problem for me as well. :) But there is another issue: When you start the debugger and have a disabled breakpoint, once you connect to the debugger, the server won't start. That means right now: when you connect with your IDE to the debugger, make sure the break point (just tested with one) is active or no break points registered at all.

ViugiNick commented 5 years ago

@iggycoder Sound like a problem on the vs code plugin side. Is it possible to log verbose debugger information somehow in VSCode?

iggycoder commented 5 years ago

Ok. This issue has been reported.

ViugiNick commented 5 years ago

@rockorequin @thestelz Published a 0.2.4 debase version, this issue should be resolved there

rockorequin commented 5 years ago

@ViugiNick Thanks! 0.2.4 is working fine.

thestelz commented 5 years ago

@ViugiNick I was using the 0.2.3 and 0.2.4 versions with no issues. I think it's good to go.

ViugiNick commented 5 years ago

@rockorequin Could you please close the issue?