'How to build flutter web app in debug mode?

flutter build web will build my flutter app with obfuscation and minification.

I want my error stack to be readable though.

How should I modify the command?



Solution 1:[1]

There's an issue on github for this feature, feel free to upvote ;)

https://github.com/flutter/flutter/issues/96283

Solution 2:[2]

The only way I have found to do this is to use flutter run -d chrome. We would then need to locate where the files on disk are located.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Xavier P
Solution 2 dazza5000