Closed
Description
I'm having a trouble with breakpoints when using flutter for web in debug mode. Everything worked fine until I had to change base url attribute because our application is not sitting root.
Of course that this could be fixed by changing base during development but it is really cumbersome. For my use case I have written a custom CI stage that changes base url before build without committing so its not a blocker.
I haven't found similar issue so I even tho it is not a blocker I decided to post an issue to possibly save some time for others when they encounter this issue.
Steps to Reproduce
- Create new flutter application using
flutter create bug
. - Change base from
<base href="/">
to<base href="/bug/">
inside of<app root>/web/index.html
- Place a breakpoints somewhere in your application using your favourite IDE (im using intellij but it also happens in vs code)
- Run your application in debug
- Watch how your breakpoint is ignored
Expected results: My breakpoint wouldn't be ignored
Actual results: My breakpoints are sadly ignored
❯ flutter doctor -v
[✓] Flutter (Channel stable, 2.2.2, on macOS 11.4 20F71 darwin-x64, locale en-GB)
• Flutter version 2.2.2 at /Users/_/Development/flutter
• Framework revision d79295af24 (11 days ago), 2021-06-11 08:56:01 -0700
• Engine revision 91c9fc8fe0
• Dart version 2.13.3
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/_/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 57.0.5
• Dart plugin version 211.7233
[✓] VS Code (version 1.57.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.23.0
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.114
• No issues found!