To be more precise: some breakpoints don’t work, only in some files!
Tip: If a breakpoint does not work, remove all imports in the file. Click the bulb to get suggestions – and you will see the duplicate imports. See wrong imports
Btw.: I am on Windows. And the file system does not distinguish between upper and lower case filenames.
5
Answers
need to roll back the version of the flutter plugin to 64.1.2.
https://plugins.jetbrains.com/plugin/9212-flutter/versions
Upgrade to the latest version of the flutter plugin 65.1.3 solved my problem.
https://plugins.jetbrains.com/plugin/9212-flutter/versions
Confirmed: plug-in was one thing.
The other problem is that IntelliJ (same for Android Studio) distinguish between:
Compiling, running, Dart analysis … everything’s fine. However, breakpoints don’t work!
To be more precise: some breakpoints don’t work, only in some files!
Tip: If a breakpoint does not work, remove all imports in the file. Click the bulb to get suggestions – and you will see the duplicate imports.
See wrong imports
Btw.: I am on Windows. And the file system does not distinguish between upper and lower case filenames.
Faced to this issue today as well: looks like for me the solution was to update Flutter / Dart SDK and their Plugins for Android Studio.
Some users report the problem is linked to the Chrom Version >=100 due to API change, but on my side it was not working with Edge as well.
After update problem has gone
There is indeed also an issue with Chrome Version >=100. Running
flutter upgrade
(to flutter 2.10.5) fixed this for me as described here