flutter / flutter/flutter-intellij

Breakpoints don't work on a mounted dev drive

Open
#7,336 7 comments 0 reactions 1 assignee Claimed by @helin24 View on GitHub
❖ platform-windows P2 topic-debugging
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

## Steps to Reproduce

1. On Windows 11, create a Dev Drive (let's call it D: here)
2. Mount D: to a subfolder of C: (for example C:\Projects)
3. Create a project in D:\my-great-flutter-project
4. Open it in Android Studio using the path C:\Projects\my-great-flutter-project
5. Try to debug the app with breakpoints -> doesn't work and breakpoints are shown as 🚫 :(
6. Open it in Android Studio using the path D:\my-great-flutter-project
7. Try to debug the app with breakpoints -> works :)

## Version info

Flutter Doctor output

```
[✓] Flutter (Channel stable, 3.19.1, on Microsoft Windows [Version 10.0.22631.3374], locale
en-GB)
• Flutter version 3.19.1 on channel stable at C:\Users\miche\fvm\versions\3.19.1
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision abb292a07e (7 weeks ago), 2024-02-20 14:35:05 -0800
• Engine revision 04817c99c9
• Dart version 3.3.0
• DevTools version 2.31.1

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\development\Android\Sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = C:\development\Android\Sdk
• Java binary at: C:\Users\miche\AppData\Local\Programs\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
• All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at
.\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.4)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.9.34714.143
• Windows 10 SDK version 10.0.22621.0
✗ 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 2023.2)
• Android Studio at C:\Users\miche\AppData\Local\Programs\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 17.0.9+0--11185874)

[✓] Connected device (3 available)
• SM G991B (mobile) • R3CR403EPAV • android-arm64 • Android 14 (API 34)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version
10.0.22631.3374]
• Edge (web) • edge • web-javascript • Microsoft Edge 123.0.2420.81

[✓] Network resources
• All expected network resources are available.

! Doctor found issues in 2 categories.
```

## Additional notes

- I am using FVM; I am not sure it's relevant to the problem, I don't think it is but I wanted to mention it regardless.
- Potentially related? #6196

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.