Flutter-intellij: "Attach debugger to Android process" icon is disappeared in Android Studio

Created on 2 Apr 2020  路  3Comments  路  Source: flutter/flutter-intellij

I include a flutter_module as submodule to my existed android project. The structure is like following:
-android project
--app
--other_module
--flutter_module

With this structure, I can both edit android native code and dart code, run Android app and hot reload dart code. However, when I want to debug the android code, I can't find the "Attach debugger to Android process" icon.

The tools panel at Android studio:
image

I have found the same issue at https://github.com/flutter/flutter/issues/45836. So I disable the flutter-plugin at Android Studio and then it works. But I think it is not elegant. As a result , I create this issue. Looking forward to your help.

platform-android-studio

Most helpful comment

Sorry about that. In the days before add-to-app we disabled that action because it didn't make sense in a Flutter project. We'll add it back.

All 3 comments

Hey guys this is a real problem. There's no option to attach a debugger to a running android process to debug the native app. Not only the icon dissapeared, but the attach debugger window is completely different for me and debugging no longer works.

Screenshot 2020-04-04 at 14 14 21

Sorry about that. In the days before add-to-app we disabled that action because it didn't make sense in a Flutter project. We'll add it back.

@stevemessick You said that this "doesn't make sense in a Flutter project."

Can you clarify this?

I'm trying to debug Android platform code, as documented here: https://flutter.dev/docs/testing/oem-debuggers

Which specifically says to use the the "Attach debugger to Android process" functionality. Am I missing something here (very well could be the case).

Also, is there a way to upgrade the Flutter plugin within Android Studio to a version with the fix?

Was this page helpful?
0 / 5 - 0 ratings