Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enter LLDB command via Android Studio

How can I enter an LLDB command via Android studio?

According to here:

In addition to the normal Android Studio UI, the debugger window has an LLDB tab that lets you enter LLDB commands during debugging. You can enter the same commands that Android Studio uses to display information in the debugger UI, and you can perform additional operations.

Great! ... But where is the "LLDB tab"? There is indeed a "Console" tab in the Debug tab which says:

Connected to the target VM, address: 'localhost:8600', transport: 'socket'

But text typed here followed by an enter does nothing, paused or not paused.

like image 550
Kaganar Avatar asked Jan 12 '17 23:01

Kaganar


People also ask

What is LLDB in Android?

LLDB is a next generation, high-performance debugger. It is built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler.

How do you create a breakpoint in LLDB?

In lldb you can set breakpoints by typing either break or b followed by information on where you want the program to pause. After the b command, you can put either: a function name (e.g., b my_subroutine ) a line number (e.g., b 12 )


1 Answers

LLDB tab was missing because I had "android-gradle-native-java" selected instead of "android-gradle-native".

enter image description here

like image 192
Kaganar Avatar answered Sep 30 '22 14:09

Kaganar