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
Support per-library exception pause mode #40097
Comments
@DanTup I am not sure I understand why you think the VM service API has to support setExceptionPauseMode per-library for this to work, the client tools can do this kind of filtering by resuming execution when the exception is not from the desired library. |
@a-siva I don't think the editor is able to tell whether an exception will be handled or not. This is normally done in the VM be looking up the stack for I think it's very similar to |
The VM already filters out the exception is handled or not part so the client tool does not have to decide that. The original request talks about breaking on "all exceptions" which I presume includes handled ones too. There are many design points to consider here
|
@a-siva the request here is to be able to have on "all exceptions" for some libraries (for ex. the users own packages) and "unhandled exceptions" for others (for ex. the SDK or other pub packages). Does the VM include info with exceptions to say whether they will be handled or not?
It's not clear if this is in the VM or you mean the Dart client library. If the latter, I think that would only help for Dart implementations (VS Code's debug client is TypeScript, and I think IntelliJ's may be in Java (@devoncarew?)).
Sure - I didn't mean to suggest it would be unacceptable, and performance was a minor concern. We do do this for conditional breakpoints though, and the slowdown can be noticable when it triggers a lot (for ex. inside loops/ |
(FWIW, I think it's reasonable to try to gauge the level of demand for such a feature before implementing anything, but here seems like a better place to collect 👍's since the feature is editor-agnostic) |
Original requested at Dart-Code/Dart-Code#2187
@shyndman wrote
@DanTup wrote
The text was updated successfully, but these errors were encountered: