Breakpoints not working with Flutter in Android Studio

Viewed 3372

I can set breakpoints, but when I run in Debug mode the breakpoint's icon change with this:

enter image description here

I think that the problem is the new version of Flutter plugin in Android Studio, but I'm not sure. How to fix this?

What I've tried:

  1. flutter clean
  2. android studio cache clean and restart
5 Answers

Confirmed: plug-in was one thing.

The other problem is that IntelliJ (same for Android Studio) distinguish between:

import '../../viewmodel/**m**essages
import '../../viewmodel/**M**essages

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

Related