Questions tagged [lldb]

LLDB is a debugger 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.

LLDB is a debugger 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. It is distributed with the Xcode development environment. Home page is http://lldb.llvm.org/

1918 questions
15
votes
1 answer

iOS app getting killed in background - how to debug?

My iOS app gets terminated when put in background. I get the following logs in the device console: Background Task 160 (""), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to…
AKK
  • 151
  • 1
  • 4
15
votes
4 answers

How to fix Xcode 10.0 debugger, it is not fully functioning?

After upgrading to Xcode 10.0 the debugger is failing to perform basic functions. It's possible the debugger problems are unrelated to the upgrade to 10.0 but I suspect this as the catalyst. Symptoms: Breakpoints are breaking properly The "local…
David
  • 171
  • 1
  • 5
15
votes
5 answers

Xcode 10, LLDB: Couldn't IRGen expression

Using Xcode 10, when I stop my app using a breakpoint and try to print the content of an object in the Console, I obtain: "Couldn't IRGen expression, no additional error" However, I can see the value of the object in the Variables View panel. How…
asclepix
  • 7,971
  • 3
  • 31
  • 41
15
votes
1 answer

`tiny_malloc_from_free_list` made my pointer `NULL`?

I am working on code that includes bllipparser Python module, among other things. Feeding it the same dataset, it will intermittently crash (maybe once in three to ten runs). Going through lldb, I found that the public field weights of RerankerModel…
Amadan
  • 191,408
  • 23
  • 240
  • 301
15
votes
4 answers

LLDB: add symbols file?

I'm trying to debug an android native app from Android Studio's native debugging using lldb. My native app contains one libmain.so that is compiled and run by Android Studio and another external libother.so compiled by me. when debugging, I am able…
shoosh
  • 76,898
  • 55
  • 205
  • 325
15
votes
4 answers

Interact with swift object with memory location in the debugger

Suppose I know, based on earlier console output, that at some memory location is an object of interest: In the ObjC debugger I could do something like po [0x7a5125a0…
Drew
  • 8,675
  • 6
  • 43
  • 41
15
votes
3 answers

Use C++ std::cout in lldb

I'm trying to call std::cout within lldb in an Xcode 5 C++ project. My project has an #include line (and I verified that compiled std::cout commands work fine), but it does not have a using namespace std; line. When I stop at a breakpoint…
Daniel Golden
  • 3,752
  • 2
  • 27
  • 32
15
votes
4 answers

Why can't LLDB evaluate this expression?

Neither one of these statements can be processed by LLDB... why is it unable to come up with the NSString result and print it out expr -o -- [NSString stringWithFormat:@"%@", @"Wow this doesnt work??"] po [NSString stringWithFormat:@"%@", @"Wow…
user2655474
  • 171
  • 1
  • 7
15
votes
1 answer

Xcode 5 debugger doesn't print objects

i'm having problem debugging from the console with lldb debugger after upgrading to xcode 5. i used to type po object and it used to work fine, however now i get the error error: instance method 'performBlock:afterDelay:' has incompatible result…
akaralar
  • 1,103
  • 1
  • 10
  • 29
15
votes
2 answers

LLDB: Show all objects with a pointer to an object in memory

So, at a breakpoint, I have a random object instance. I want to figure out which objects have a pointer to this object. Is there a way to see this in the debugger console? Maybe something that shows me all the objects that have a retain on the…
Jesse Bunch
  • 6,651
  • 4
  • 36
  • 59
14
votes
12 answers

iOS App crashing before entering main() with Xcode 4.2 & iOS 5

Background After upgrading xcode4.1/ios4 to xcode4.2/ios5 I am experiencing crashes while the App is loading and before it even enters main(). I have set a break point in main() but it is never reached. Compiling the project in Xcode 4.1 with a…
Richard Stelling
  • 25,607
  • 27
  • 108
  • 188
14
votes
5 answers

Android Studio debugger console displays "Failed to connect port"

I have a problem with Android Studio. Debugger Console says "Failed to connect" and debugging doesn't start. This problem is occurred in any Android device(include virtual device). Please give me some ideas to solve this problem. I…
BakaScript
  • 143
  • 1
  • 6
14
votes
1 answer

Is there a way to directly run the program built by Cargo in gdb or lldb?

Is there a way to run the program built by Cargo immediately in gdb? cargo has lots of functions and can run the program, so it seems plausible. The expected command would be something like cargo debug.
Alex
  • 9,891
  • 11
  • 53
  • 87
14
votes
3 answers

Xcode debugger (lldb) get object description from memory address

Little-known fact: It is now possible, in Xcode, while paused in the debugger, to introspect the notification center to learn what objects are registered to receive what notifications: (lldb) po…
matt
  • 515,959
  • 87
  • 875
  • 1,141
14
votes
3 answers

Documentation for LLDB's GUI

I've been recently been playing around with LLDB's gui feature. (A stackoverflow link about this feature is described here. My current lldb is lldb-320.4.156) So far, it seems very convenient, especially the ability to view local variables in the…
hlin117
  • 20,764
  • 31
  • 72
  • 93