Runtime Exceptions aren't displayed in the UI console when using DDC/Flutter #1365
Labels
area-error-messaging
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-ux
A user experience or user interface related issue
Milestone
Exceptions in DDC are reported to the
window.onerror
callback. Right now, these errors are being reported as "Script error." because the script is being loaded from a different domain. (See this article.) Non-async exceptions are caught by the Flutter framework and printed to the console.The response headers from the
compileDDC
endpoint already have anaccess-control-allow-origin: *
header, so setting thecrossorigin
attribute toanonymous
should solve this problem, but doesn't seem to work for me.We should investigate different options for capturing and reporting errors. For example, the future returned by a module calling main() can be listened to for errors, but won't catch everything:
Another option is to use zones, but this requires more investigation
related to #1357
The text was updated successfully, but these errors were encountered: