Skip to content
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

Break on all exceptions occurring in my code #2187

Open
shyndman opened this issue Dec 26, 2019 · 1 comment
Open

Break on all exceptions occurring in my code #2187

shyndman opened this issue Dec 26, 2019 · 1 comment
Labels
blocked on dart / flutter Requires a change in Dart or Flutter to progress
Milestone

Comments

@shyndman
Copy link

shyndman commented Dec 26, 2019

There are lots of cases where exceptions are used as flow control in external libraries, which limits the value of breaking on "All Exceptions" because of all the false positives.

It would be really nice to limit to breaking on all exceptions that occur in code under my control. Feels like it could be a nice complement to the new debug scoping button (the one that reads "Debug my code + packages + SDK").

@DanTup
Copy link
Member

DanTup commented Jan 2, 2020

If I understand correctly, you want to break on "all exceptions in my code" and "unhandled exceptions in other code"?

This is not currently possible from the VMs APIs - and it may be tricky to implement. The VM doesn't have a concept of "my code", it just knows which libraries are debuggable/not (the VS Code extension makes the decision about which libraries to mark as debuggable based on the settings). I think implementing it would require the VM to support setExceptionPauseMode per-library (instead of once globally). Could you open the request at https://github.com/dart-lang/sdk and should it be implemented in the VM, we can update the extension here to use it. Thanks!

@DanTup DanTup added the blocked on dart / flutter Requires a change in Dart or Flutter to progress label Jan 2, 2020
@DanTup DanTup added this to the Backlog milestone Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked on dart / flutter Requires a change in Dart or Flutter to progress
Projects
None yet
Development

No branches or pull requests

2 participants