expression produced error: error: Couldn't realize type of self. Try evaluating the expression with -d run-target
It typically seems to happen during breakpoints in tests.
My Build Configuration is Debug as well.
Any ideas?
po is a hard habit to break, I’ll admit, but it’s not always the right choice. We gave a great talk about this at WWDC a few years back, namely WWDC 2019 Session 429 LLDB Beyond “po”. The problem with po is that it has to run code in the inferior, and that’s a tricky task that can trigger all sorts of failurespo is my real bread and butter for debugging.
I talked with the LLDB team about this and the answer was an emphatic “Yes!” So please file the bug with whatever info you have available.Is it worth filing a bug report without a sample project?
Code Block % cat ~/.lldbinit log enable -f /tmp/lldb.log lldb types expr
FWIW, right clicking on the variable in the inspector and then choosing "Print Description of " produces the same error. I assume because Xcode itself is still using po.
I assume because Xcode itself is still using
po
.
Yes. Well, the Print Description does, but that shouldn’t come as a surprise given the command name (-: However, the values that Xcode displays in the main Variables View is driven by the same infrastructure as v
.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Please use p
to see the values of the variables
Is this the desired behaviour?
Desired by who? Because it sounds like it’s causing you grief and, if so, you should file a bug about that. See my earlier posts for suggestions on how best to file a bug here.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
I start getting the same error with Xcode 16.1 Filled the feedback FB15698341