Skipping breakpoint when closing socket connection #1012
Closed
bjhilbrands
started this conversation in
General
Replies: 2 comments
-
Looking through the code, I found that the following code (Server.rb in the method readline) is seems to be responsible for this behaviour.
Just replacing the 'continue' with an empty string seems to result in the behavior that I want, but that does not really seem like a good solution. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It turns out I had to pass non-stop: true from my client to make this work, the above change did not actually achieve anything |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
So I have been using a Unix sockets to interact with the debugger. Right now I made a rails controller that manages the interaction with the debugger, but in this workflow I do close the socket connection after each request and create a new one (Because instance variables do not persist between requests). The problem that I'm running into right now, is that it goes to the next breakpoint whenever the socket connection is closed.
For example, the controller receives a request to get the value of a certain variable, so it opens a socket connection, gets the value of the variable over the socket connection, and then closes the connection. It then receives the same request again, but now we are suddenly at the next breakpoint.
I was wondering if there is a particular reason for this behavior, and if anyone would perhaps know a way around this.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions