Flutter dart debugger breakpoints stopped working

Don't use relative imports in lib/main.dart

import 'app_strings.dart';
import 'net_libs_page/net_libs_page.dart';

instead use

import 'package:my_app/app_strings.dart';
import 'package:my_app/net_libs_page/net_libs_page.dart';

where my_app is what is in pubspec.yaml in the name: field.

The issue where this is tracked https://github.com/dart-lang/sdk/issues/33076


Seems that capitalization for the path inside import path causes breakpoints to stop working. Ie:

package:myApp/model/myWidget/myWidget.dart

and

package:myApp/model/MyWidget/MyWidget.dart

are not the same for debugging. Funny thing is that the app launches without any problem with incorrect path capitalization.