LLDB `po`/`v` commands fail in new iOS project

Hi everyone,

I'm unable to use the po or v commands in the LLDB debugger in a fresh new iOS project (but works in my existing projects).

I'm using Xcode 26.2 (17C52).

I tried solving the issue with various AI tools for hours but had no success. The community is truly irreplaceable.

Thanks for the post.

The latest Xcode is 26.4.1 and I just used po without any issue. On your screenshot it looks like you are on SwiftUI currently inside the View?

If your fresh project is a SwiftUI app and you are placing your breakpoint directly inside the var body: some View block, LLDB frequently fails to evaluate variables. This is because the body is a ViewBuilder, and the complex generic type inference often breaks the LLDB expression evaluator. Try placing a breakpoint inside a standard function (like func test() { let x = 5 }) or an .onAppear { ... } modifier. If po works there but not in the body.

It looks like you also tried v? It is your best friend in SwiftUI. po compiles code to evaluate the object. v bypasses the compiler entirely and reads the variable directly from memory. If you have a breakpoint inside your SwiftUI view, type v myVariable instead of po myVariable. It is significantly faster and works in many SwiftUI contexts where po fails.

I like to have a class extension where the model and the func for the view are there, if you use that pattern you can use breakpoints and po or closures attached to modifiers like .onAppear, .onChange, or button actions are standard Swift closures will also work.

Albert
  Worldwide Developer Relations.

LLDB `po`/`v` commands fail in new iOS project
 
 
Q