发送到哨兵的颤振Web错误报告不可读,因为被缩小了。
https://github.com/flutter/flutter/issues/37875 https://github.com/flutter/flutter/issues/16883#issue-316793104
我正在使用:https://pub.dev/packages/sentry
我怎样才能使报告不缩小以便我可以阅读?
试一试:
构建应用程序时,请使用--source-maps
选项启用构建源映射:
flutter build web --source-maps
然后,使用命令行界面将源映射上传到 Sentry:
sentry-cli releases files "myapp-1.0.0+1" upload-sourcemaps /Users/me/myapp/build/web