Closed as duplicate of#168641
Closed as duplicate of#168641
Copy link
Description
Steps to reproduce
I want to use the debug console to track a variable, but when I type the variable name created inside a method, it simple don't work. I'v already debug using this method in the past but its not working anymore...
I think is something related to Dart Analysis Server, but I'v already followed the suggestions:
- Dart: Restart Analysis Server.
- Deleted .dart_tools/
- flutter clean
- rm -rf ~/.dartServer/.analysis-driver/
But the ERROR stills persist: https://imgur.com/a/WK7kty4
// flutter logs
Showing Instance of 'NoOpDeviceLogReader' logs:
Expected results
Debug console should display Local Variables in it
Actual results
route
CompilationError: The getter 'route' isn't defined for the class 'SessionProvider'.
- 'SessionProvider' is from 'package:equimetrics_app/data/services/providers/session/session_provider.dart' ('lib/data/services/providers/session/session_provider.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'route'.
route
^^^^^
Code sample
Code sample
class AnyClass {
void anyMethod(String p){
final route = 'abc';
print(route); // prints abc
// Breakpoint in the print followed by "route" in debug console displays the error
}
}
Screenshots or Video
Logs
Logs
No logs unfortunetly
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.32.1, on macOS 15.5 24F74 darwin-arm64, locale pt-BR) [219ms]
• Flutter version 3.32.1 on channel stable at /Users/marceloviana/fvm/versions/stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b25305a883 (4 days ago), 2025-05-29 10:40:06 -0700
• Engine revision 1425e5e9ec
• Dart version 3.8.1
• DevTools version 2.45.1
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [981ms]
• Android SDK at /Users/marceloviana/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Users/marceloviana/Library/Java/JavaVirtualMachines/corretto-17.0.14/Contents/Home/bin/java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment Corretto-17.0.14.7.1 (build 17.0.14+7-LTS)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [524ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16F6
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [9ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.3) [9ms]
• 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 21.0.5+-12932927-b750.29)
[✓] VS Code (version 1.100.2) [8ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.112.0
[✓] Connected device (3 available) [5,7s]
• iPhone 15 Pro (wireless) (mobile) • 00008130-0014395621F2001C • ios • iOS 18.5 22F76
• macOS (desktop) • macos • darwin-arm64 • macOS 15.5 24F74 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 137.0.7151.56
[✓] Network resources [350ms]
• All expected network resources are available.
• No issues found!
Metadata
Metadata
Assignees
Labels
Issue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue