-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Debugger support for 'break on exception' #2754
Comments
@Malabarba can you share some thoughts what would it take to implement this? I don't recall if we've discussed it in the past, but I know that people ask about this from time to time. |
There are two ways I could see this feature going:
The first item I have no idea how to do. The second item can be done by defining a new breakpoint macro. The debugger works by walking around the code and wrapping anything that looks interesting in a breakpoint macro that will do a number of things (pause excution, ask for user input , etc). You can invoke the instrumenter with a different macro, which wraps the code in a try catch block and will only ask for user input if it catches an exception. |
I found it useful to start cider with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
Could the stale bot config be changed to exclude issues with "help wanted" and "bug" tags? Closing stale issues only decreases their visibility, I've seen a few outstanding bug reports that have been closed by stalebot and they don't turn up in a default search of the issues - once I almost ended up filing a duplicate bug report because of this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
This issues been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it. |
Hey, is there any news on this one ? What would it take to implement it ? I would really love to have such a feature |
Is your feature request related to a problem? Please describe.
It's helpful to examine the state of the program at the moment when something exceptional occurs. Stacktraces alone don't provide enough information, like the value of the variables at the exception time.
Describe the solution you'd like
An option to set a breakpoint on exception, similar to SLBD (or even GDB or node debugger).
Describe alternatives you've considered
Wrapping the point of exception in a try-form and setting breakpoint on except. Kind of works, but only (1) in your own source code (not on exceptions thrown in libraries) (2) only after you known the position in the code which throws.
Additional context
I'm sure that this is a very common request and that there is some really good technical reason, why it wasn't implemented here. But I didn't find any issues tracking it, so I though I'll make one.
The text was updated successfully, but these errors were encountered: