Skip to content

Debugging flutter web source maps! in production build #72150

Closed
@jlubeck

Description

@jlubeck

I'm having a problem which only happens in the production build of my web app. Debug works fine, so I can't use the debugger. How should I approach the problem?

I'm getting a Stack Overflow error in the console:

Stack Overflow
main.dart.js:2979     at HF.toString (https://site.com/main.dart.js:28445:33)
main.dart.js:2979     at HF.j (https://site.com/main.dart.js:24342:24)
main.dart.js:2979     at HF.toString (https://site.com/main.dart.js:28445:33)
main.dart.js:2979     at HF.j (https://site.com/main.dart.js:24342:24)
main.dart.js:2979     at HF.toString (https://site.com/main.dart.js:28445:33)
main.dart.js:2979     at HF.j (https://site.com/main.dart.js:24342:24)
main.dart.js:2979     at HF.toString (https://site.com/main.dart.js:28445:33)

But of course that's the minified code and I don't see any source maps that were generated during build so I can understand what's going on.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: debuggingDebugging, breakpoints, expression evaluationa: productionIssues experienced in live production appsa: qualityA truly polished experiencea: releaseChallenges faced when attempting to productionize an appd: stackoverflowGood question for Stack Overflowengineflutter/engine repository. See also e: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions