A bug in Xcode/lldb, perhaps? –. (lldb) po self error: <EXPR>:3:1: error: use of unresolved identifier 'self' self ^~~~ (lldb) fr variable self =. LLDB is a next-generation, high-performance debugger. For completeness sake, it is an alias to this command: expression -o --. If you are stopped in Swift code, paste this line into the debugger console (after the (lldb) prompt) and press enter to print the hierarchy of the root view controller: po UIWindow. Debugging - is not just a process for finding and fixing bugs - for me, this is a great way to find out how actually the program works. First, tell lldb you are in a Swift context (not Objective-C): (lldb) settings set target. 3. The first parameter on ARM64 is stored in the x0 register and on Intel it's in rdi. At some point during my work, Xcode's po and p commands stopped working. 5); autoresize = RM+BM; layer = <CALayer: 0x17dce9b0>> You can do the same for every constraint the debugger will point to you:-) Now you decide what to do with this. Optionally you can set the number of bytes to watch with --size. Every time I use po to print something in the console, it will show the errors above. . . (lldb) v req (Foundation. 2. Learn more about Teams. Let's first take a quick look at document handlers, as this is something I've researched and blogged about before. The LDB file prevents this from happening by locking the file when one user already has it open. . In my singleton class, I have a swift enum here: import UIKit enum UserType { case terant // case normalUser // case normalUserFinancialer // } @objc(UserStaticSwift) class. . {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":". 1 Answer. Similar to inspecting the view hierarchy, we can also inspect the view controller hierarchy using po [[[UIWindow keyWindow] rootViewController. After setup a breakpoint you could use the lldb tool to see the runtime of the application. Retrieve all objects of that type from the realm. johannesweiss (Johannes Weiss) November 29, 2022, 3:26pm 3. NET Core application. . . (gdb) set print object 1 (gdb) p someCPPObjectPtrOrReference Note: Only for C++ objects. . Q&A for work. A guide documenting the LLDB command-line debugger's concepts, features, and use. . (lldb) po 0x7df67c50 as MKPinAnnotationView Tôi biết rằng địa chỉ này trỏ đến MKPinAnnotationView, nhưng nó không nằm trong khung mà tôi có thể chọn. Improve this answer. On the compiler side, where the expression evaluator and po live, LLDB gets type information from Modules. 11 on macOS 10. experimental. A guide documenting the LLDB command-line debugger's concepts, features, and use. . (lldb) po type(of: self) test1. The Application is just empty template from Xcode's starting templates. printHierarchy Instruments — Core Animation. 6. ) { return 17; } (lldb) expr foo ("bar") (int) $2 = 17 (lldb) expr foo ("bar", 2) error: no matching function for call to 'foo' note: candidate function not viable. but if you’re interested in this topic I reckon that WWDC 2022 Session 110370 Debug Swift debugging with LLDB will be super useful. I have the following piece of code: I have a break point in each of the lines, and in each of them I type. Evaluating an expression with continuing breakpoint. LLDB is a next-generation, high-performance debugger. Attempt to access the related object directly as a property. Is it possible that you're filtering the log output, i. lldb also supports command completion for source file names, symbol names, file names, etc. . removeFromSuperview () } And the result: (lldb) po stackView. .