Chapter 4: Stopping in Code. Breakpoint Actions

(lldb) breakpoint set -n "-[UIViewController viewDidLoad]" -C "po $arg1" -G1
Xcode 16.2 (16C5032a) does not print anything in console.
It only works if you use manual input through the Breakpoint Navigator with «Debugger Command: po …»

2 Likes

Hello,

Xcode 16.2 (16C5032a) is not printing anything to the console when using the LLDB command breakpoint set -n “-[UIViewController viewDidLoad]” -C “po $arg1” -G1. The breakpoint is created, but the automatic “Debugger Command: po …” action does not execute as expected. However, the command works correctly only when entered manually through the Breakpoint Navigator using the built-in “Debugger Command” field.

Best Regards

Hello!

In Xcode 16.2, LLDB’s -C option for breakpoint commands often fails to run inline po expressions, which is why nothing prints. The reliable workaround is to set the command in the Breakpoint Navigator or attach it afterward with breakpoint command add, or use -o instead of -C.

1 Like