-
-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot interrupt program execution from remote control interface #239
Comments
@izaera Thanks for the report and sorry for not replying to your emails soon enough, I don't have a lot of time for this... :( Unfortunately, remote debugging (and thus integrations) are currently the weakest part of One question, does remote debugging work properly and is it only the Regards! |
Hi David:
Don't worry about response times. I know what being busy is :-).
Regarding your question: everything seems to work fine but the interrupt
command.
Again, I may help with the fix if I get some orientation on how to proceed
(because I'm not an expert in Ruby internals :-( ).
Cheers.
|
Just a hint: the problem seems to be an exception when Byebug.thread_context is called in: https://github.com/deivid-rodriguez/byebug/blob/master/lib/byebug/commands/interrupt.rb#L27 AFAIK, that is a native method so I had to stop debugging there. I may try to add some traces to the native code, but I have to setup a proper compilation environment, so I have to get some spare time. |
More info about this. Behaviour has changed after #242 Using the code from that PR in local as my byebug gem, I have done the following:
So I can interrupt the program just once. Before my PR -or some other change I'm not aware of- I couldn't even interrupt the program once. |
The same issue happens to me :( Very sad that there's no normal way to debug ruby code.. seems like ruby is not a good solution for new projects |
Glad to hear it. I never stop to use ruby, as it's still my favorite. I was in bad mood when I wrote last comment, as I was writing a gui for the debugger and had to stop the project because of this bug. |
@angelovAlex Glad to hear that you still use Ruby! Maybe you can resume your work on that GUI now 😄 |
@deivid-rodriguez Yes, you are right: I don't use Ruby any more because I changed job. However, my Atom debugger was half developed so, if anyone wants to continue it, he/she is welcome. Thx for the info :-). |
Thanks for the heads-up, @izaera! :) |
After sending PR #238 to fix remote debugging, I still cannot interrupt program execution from the remote control interface.
I'm starting a simple Ruby script that loops forever with a 5 second delay per loop and a calls 'puts' with the loop count. I run it with remote byebug and I connect to the debugging remote and control ports. Everything looks fine, but when I issue an interrupt command in the control port while the program is running, it replies that Byebug has not been started yet.
I'm not sure what this means. If it cannot be fixed now, any hint on how to continue diagnosing/fixing this will be appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: