You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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").
The text was updated successfully, but these errors were encountered:
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!
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").
The text was updated successfully, but these errors were encountered: