如何获取 Flutter Web 应用程序的去混淆堆栈跟踪

Mar*_*ele 5 obfuscation dart flutter flutter-web

我有一个 flutter Web 应用程序(使用 创建flutter build web),当我运行它时,我得到以下堆栈跟踪。有没有办法将此堆栈跟踪转换为 dart 文件中的原始行?我注意到有一个 main.dart.js.map 但我不确定这在这里是否有帮助。

还有一个相关的问题:对于 flutter web,我可以以某种方式控制哪些类/方法被混淆,哪些没有?

提前致谢,

马克

Uncaught Exception: ...
    at Object.b (http://localhost:8001/main.dart.js:9371:3)
    at Object.avm (http://localhost:8001/main.dart.js:4660:9)
    at Object.aIt (http://localhost:8001/main.dart.js:13260:3)
    at http://localhost:8001/main.dart.js:71570:12
    at amf.a (http://localhost:8001/main.dart.js:14192:62)
    at amf.$2 (http://localhost:8001/main.dart.js:35515:14)
    at alb.$1 (http://localhost:8001/main.dart.js:35509:21)
    at UK.n0 (http://localhost:8001/main.dart.js:36349:31)
    at ahp.$0 (http://localhost:8001/main.dart.js:35770:11)
    at Object.uh (http://localhost:8001/main.dart.js:14324:40)
Run Code Online (Sandbox Code Playgroud)