flutter-intellij: Cannot attach debugger

Steps to Reproduce

I’ve already opened a issue on Flutter GitHub but they weren’t very useful. When I try to lauch my application in debug mode, it seems like lauching normally. The applicaion skips all the breakpoints without any error and the application doesn’t wait for debugger.

Version info

Flutter doctor:

[√] Flutter (Channel beta, v0.10.2, on Microsoft Windows [Versione 10.0.17134.345], locale it-IT)
    • Flutter version 0.10.2 at C:\flutter
    • Framework revision d8cbb80206 (2 weeks ago), 2018-10-26 01:30:21 -0400
    • Engine revision 6c2ade9fa2
    • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\strez\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 30.0.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] VS Code (version 1.28.2)
    • VS Code at C:\Users\strez\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.20.0

[√] Connected device (1 available)
    • ONEPLUS A6003 • a5e445e6 • android-arm64 • Android 9 (API 28)

Also Flutter Plugin version: 30.0.1

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 6
  • Comments: 21 (5 by maintainers)

Most upvoted comments

@spagni @VyasPrachi Sorry, the problem disappeared after some times and after I changed the project structure to have less subfolder. Probably it’s a folder/file name problem.

I’m also experiencing this in VSCode.

The debug works on other project. In the MainActivity.java there is nothing except the usual super.onCreate and GeneratedPluginRegistrant.registerWith(this);

By the way the debugging stopped working in that particular project when I upgraded the flutter plugin from 29.* to 30.*

The debug seems to work only on the first subfolder of ‘lib’. Going deeper it seems like the debugger can’t see the breakpoints.