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.
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.
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 )
LLDB tab was missing because I had "android-gradle-native-java" selected instead of "android-gradle-native".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With