
When the breakpoint triggers you will be able to use the normal debugging features of Visual Studio just like with other projects.With the quickstart example, just tap on the screen. Our example project only has one source file, hence we choose this. Choose the source file you want to put a breakpoint in.Once the app is paused go to the ‘GDB Session’ window and click on the ‘Show a list of all source files’ button.Click on ‘Break’ as that is our intention.The APK has been started on the device and already the LogCat and GDB Session windows are receiving messages.Create a new upload key and keystore in Android Studio. On the New Key Store window, provide the following information for your keystore and key, as shown in figure 2. Below the field for Key store path, click Create new. Now VisualGDB will deploy the APK file to the Android device and start the debug session. In the Generate Signed Bundle or APK dialog, select Android App Bundle or APK and click Next.Add a preset name if you want to use those settings later on as well. Also make sure it is a debug version of the APK file, otherwise it cannot be debugged.


You can find it in the bin directory of Android projects. Connect an Android device or start an Android Virtual Device. You can use any APK file as long as it is debuggable. In this tutorial we will use an APK file from the Android quickstart tutorial project. This tutorial shows how to quickly debug an APK on an Android device without creating a separate VisualGDB project.īefore we begin, ensure that VisualGDB 3.1 or later is installed with the Android Edition.
