LLDB: Couldn’t IRGen expression

I was having the same issue using Carthage frameworks, and got the LLDB debugger working again by deleting the Carthage folder in the project root and forcing Carthage to rebuild the frameworks from source: carthage update –platform iOS –no-use-binaries

GDB Vs LLDB debuggers

LLDB is part of the LLVM suite of tools that Apple is moving to, including Clang. There are tons of improved features, including improved performance. There’s a quick intro for GDB users here: http://lldb.llvm.org/tutorial.html However… You might want to take a trip over to the forums at developer.apple.com. There’s a fair bit of rumbling about … Read more

Xcode – Error creating LLDB target

Did you use Architectures=$(ARCHS_STANDARD_32_BIT) and run your app on a 64 bit device? (iPhone 5S or iPhone 5S simulator) Apple seems to be stricter with apps which don’t support 64bit. So if there is no specific reason, I think it’s better to include arm64 in your build architecture NOTE ABOUT 64-BIT ARCHITECTURE An app extension … Read more

How to call methods or execute code in LLDB debugger?

The canonical reference for gdb v. lldb commands is http://lldb.llvm.org/lldb-gdb.html You want to use the expr command which evaluates an expression. It’s one of the lldb commands that takes “raw input” in addition to arguments so you often need a “–” to indicate where the arguments (to expr) end and the command(s) begin. e.g. (lldb) … Read more

Xcode/LLDB: How to get information about an exception that was just thrown?

The exception object is passed in as the first argument to objc_exception_throw. LLDB provides $arg1..$argn variables to refer to arguments in the correct calling convention, making it simple to print the exception details: (lldb) po $arg1 (lldb) po [$arg1 name] (lldb) po [$arg1 reason] Make sure to select the objc_exception_throw frame in the call stack … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)