-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onpackage:dwdstriaged
Description
Moving this from Dart-Code/Dart-Code#5632 (filed by @oliver-whale).
If you add a breakpoint to a file that is not called, the error that comes back looks like this:

I wonder if this could be improved given that it is surfaced to the user as the reason their breakpoint wasn't set? For example:
- it's quite long and the prefix "Unexpected DWDS error for addBreakpointWithScriptUri" seems superfluous
- perhaps "invalid argument (uri): Unknown library 'foo'" could just be "The script 'foo' is not loaded" or similar?
I'm not if the difference between a non-existent script and one that just wasn't called/compiled is known, however perhaps it can be assumed that the tools calling this API to set breakpoints are probably sending valid data and therefore the reason is likely that the script is not loaded (unless ofcourse, the URI is obviously invalid)?
oliver-whale
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onpackage:dwdstriaged