5

I want to debug c++ module in Android Studio. I create a project with c++ support in android studio.

When i debug, this is what i get. enter image description here

'Starting LLDB server' will never stop. If I stop debugging, its still there. If I exit android studio, i get warning about running background process. I already installed LLDB in SDK manager. I have enable debugging in my device.

What should I do?

Syaiful Nizam Yahya
  • 4,196
  • 11
  • 51
  • 71

3 Answers3

2

In Android Studio 3.5 I encounter similar issue with LLDB debugger - where "Starting LLDB server" process hangs forever, no debugging process is started. Check this answer.

Robert Lujo
  • 15,383
  • 5
  • 56
  • 73
0

I was having this problem today all of a sudden Android Studio 3.5.3. What fixed it for me was to uninstall & reinstall Android SDK Platform Tools and LLDB.

This was the exact steps I followed:

  1. Open Android Studio
    -> Preferences
    -> Appearance & Behavior
    -> System Settings
    -> Android SDK
    -> SDK Tools tab
  2. Uncheck LLDB and Android SDK Platform-Tools
  3. Click Apply & let sdkmanager uninstall those items.
  4. Re-Check LLDB (I'm using 3.1) and Android SDK Platform-Tools (I'm using 29.0.5)
  5. Click Apply & let sdkmanager install those items
  6. Quit Android Studio & any running emulators
  7. Restart Android Studio

After that, running the debugger no longer hangs at Starting LLDB Server for me.

Jordan
  • 4,133
  • 1
  • 27
  • 43
0

I was having the same problem. I realized it was caused by using ADB over WiFi.

But when I connected the phone via USB cable and tried to start debugging this way, it was still stuck.

I had to disable the WiFi on the phone and then it started working immediately.

Robyer
  • 4,632
  • 2
  • 23
  • 21