-
Notifications
You must be signed in to change notification settings - Fork 177
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
Problem with breakpoints on multiple threads #630
Comments
@Malabarba Any thoughts on this one? |
I think this is a duplicate of another issue we have here, at least I kinda remember answering something like this recently. :-) cider-nrepl does support multiple threads (each thread that hits a breakpoint waits for input independently). The problem is that the cider.el frontend doesn't know how to handle that (when it gets the second input request it forgets the first one). IIRC, on some other issue I suggested we make cider-nrepl skip breakpoints when it knows there's another breakpoint already waiting for input. That is technically a regression in terms of features, but that's only a problem if there's another client other than Emacs using the debugger (and if that client supports parallel breakpoints), which I don't think is the case. |
Thanks for your response @Malabarba , I'm having some trouble finding that issue (maybe related to #460?), here or on the cider repo, but yeah it sounds like it's the same thing. I take it frontend support for parallel breakpoints is infeasible? |
It's certainly feasilble. But someone would have to do it. :-) The problem with that is that it might be confusing for the user. For example, they enter a breakpoint, then hit |
Expected behavior
Breakpoints run on multiple threads simultaneously. If multiple breakpoints are running at the same time, a mechanism exists to switch between them.
Actual behavior
I can't find a mechanism for switching between simultaneous breakpoints. If two breakpoints are running simultaneously, one of them appears to hang:
Steps to reproduce the problem
See example above
Environment & Version information
cider-nrepl version
Not clear how to check this (installed automatically with cider-jack-in), but the cider emacs package information version is 20190720.1656.
Java version
1.8.0_221
Operating system
Windows 10
The text was updated successfully, but these errors were encountered: