Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable android native debugger in Android studio

Tags:

Using Studio 2.3, gradle:2.2.1

When I try to attached debugger to app, it shows Android Hybrid Debugger ->

Now Launching Native Debug Session Attention! No symbol directories found - please check your native debug

Start hybrid debugger. And loading all *.so libraries.

I try to rename Android sdk/lldb to lldb_bak but still starting hybrid debugger.

It takes too long, waste of time. Mean while app is not responding. Can any one help me to disable native debugging. I need only java debugging.

Edit: After uninstalling LLDB from sdk tools Android Studio ask me for Quick fix dialog saying "C++ debugger is missing". If I press yes. It install LLDB again and if I press no it gives me error saying.

Error running Android Hybrid Debugger (23533): C++ debugger package is missing or incompatible

By the way I am using wireless debugging and I have c++ module with sources in my project.

Changing run configuration -> "Debug type" to 'Java' doesn't work for me.

like image 207
Qamar Avatar asked Apr 24 '17 13:04

Qamar


People also ask

How do I turn off debug mode on Android?

Turn off USB debugging modeGo to Settings. Tap System > Developer options. Go to USB debugging and flip the switch to turn it off.

How do I turn debug mode off?

To disable USB Debugging mode: Go to Settings and scroll to the System section (on Android 8 and above, go to Settings > System) Tap Developer Options. Tap the button to toggle developer options Off.

What is debug mode in Android Studio?

Android Studio provides a debugger that allows you to do the following and more: Select a device to debug your app on. Set breakpoints in your Java, Kotlin, and C/C++ code. Examine variables and evaluate expressions at runtime.


2 Answers

I found solution. Select Java from debugger list. Enjoy. Sometime it happens :)

enter image description here

like image 197
Qamar Avatar answered Oct 10 '22 01:10

Qamar


For the ones still looking for a permanent solution:

run debug configuration window in android studio 4.1.3

Go to menu Run, then Edit Configurations. Under Debugger then select the Debug Type Java.

like image 31
Chris623 Avatar answered Oct 10 '22 02:10

Chris623