Description
Describe the bug
After VS CODE updated the Flutter and Dart extension to version v3.38.1, debugging is broken.
I can set breakpoints. When the debugger hits a breakpoint the debug window shows a message that it stopped at a breakpoint, but the line of code where the breakpoint is is not highlighted like it used to be. At the breakpoint, I can no longer watch any variables.
I have tried rolling back the Dart Extension, and Flutter Extension to v3.36.0 but I'm still getting this very strange behavior at debug time. Previously, when VS Code hit a breakpoint, it automatically navigated to the file and line of code when the breakpoint is. It is no longer doing this. In fact, when the editor says it is at a breakpoint, I can't use the Watch window to view the value of any variables. It's like the debugger is stopped in another location.
I'm an American in Ukraine and Moldova working on anti-trafficking software. Everything was fine with my system, then today, I'm seeing these issues. I checked all extensions, and none of them have been updated for two or more months, except the Dart and Flutter extensions. Anything you can do to help me is greatly appreciated.
Yesterday, I updated Visual Studio 2022 to Microsoft Visual Studio Community 2022 (64-bit) - Current
Version 17.1.3 Not sure if this can cause problems with VS Code.
I've closed all apps, deleted user and windows temp files, rebooted, and still the same behavior.
To Reproduce
Open VS Code, and insure the v3.38.1 extension is installed.
Open a Flutter project.
Set a breakpoint.
Start debugging.
Expected behavior
When the debugger hits the breakpoint, the line of code should be highlighted.
In this screenshot, you can see the value of licensePlate "HELLOFLUTTER" printed in the console, but the watch window does not show the value.
Versions (please complete the following information):
- VS Code version: 1.66.0
- Dart extension version: v3.38.1
- Dart/Flutter SDK version: Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1586], locale en-US)
Version: 1.66.0 (user setup)
Commit: e18005f0f1b33c29e81d732535d8c0e47cafb0b5
Date: 2022-03-30T05:50:14.623Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Windows_NT x64 10.0.19044
C:\Users\church>flutter doctor -v
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1586], locale en-US)
• Flutter version 2.10.4 at C:\Users\church\Documents\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c860cba910 (12 days ago), 2022-03-25 00:23:12 -0500
• Engine revision 57d3bac3dd
• Dart version 2.16.2
• DevTools version 2.9.2
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at C:\Users\church\AppData\Local\Android\sdk
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[!] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.3)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.1.32328.378
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop
development with C++" workload, and include these components:
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
C++ CMake tools for Windows
Windows 10 SDK
[√] Android Studio (version 2021.1)
• Android Studio at C:\Program Files\Android\Android Studio
• 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 11.0.11+9-b60-7590822)
[√] VS Code (version 1.66.0)
• VS Code at C:\Users\church\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.34.0
[√] Connected device (4 available)
• Pixel (mobile) • FA72A0300998 • android-arm64 • Android 10 (API 29)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19044.1586]
• Chrome (web) • chrome • web-javascript • Google Chrome 100.0.4896.75
• Edge (web) • edge • web-javascript • Microsoft Edge 100.0.1185.29
[√] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.