Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

enter image description here

How can I make it evaluate my expression instead?

like image 536
asclepix Avatar asked Oct 09 '18 08:10

asclepix


1 Answers

In lldb as a workaround you can use:

fr v productVersion
fr v productBuild

since XCode 10.2

v productVersion
v productBuild

which prints local variable type and address from current call stack frame.

Apple documentation for these kind of lldb capabilities: https://developer.apple.com/library/archive/documentation/General/Conceptual/lldb-guide/chapters/C5-Examining-The-Call-Stack.html

UPDATE: Another trick that seems to help is to set enter image description here

like image 104
Kamil.S Avatar answered Sep 18 '22 04:09

Kamil.S