-
Click the Attach debugger to Android process button. (
):::tip If this button doesn't appear in the Projects menu bar, verify that you opened Flutter application project but not a Flutter plugin. :::
-
The process dialog displays one entry for each connected device. Select show all processes to display available processes for each device.
-
Choose the process to which you want to attach. For this guide, select the
com.example.my_appprocess using the Emulator Pixel_5_API_33.
{% comment %}
@atsansone - 2023-07-24
These screenshots were commented out for two reasons known for most docs:
- The docs should stand on their own.
- These screenshots would be painful to maintain.
If reader feedback urges their return, these will be uncommented.
Flutter app in Android device displaying two buttons.
-
Locate the tab for Android Debugger in the Debug pane.
-
In the Project pane, expand my_app_android > android > app > src > main > java > io.flutter plugins.
-
Double click GeneratedProjectRegistrant to open the Java code in the Edit pane.
The Android Project view highlighting the GeneratedPluginRegistrant.java file.
At the end of this procedure, both the Dart and Android debuggers interact with the same process. Use either, or both, to set breakpoints, examine stack, resume execution and the like. In other words, debug!
The Dart debug pane with two breakpoints set in lib/main.dart.
The Android debug pane with one breakpoint set in GeneratedPluginRegistrant.java.



