- Run your app in Xcode.
- Press ⌘⌃Y (Debug -> Pause).
- Go to the debugger console: ⌘⇧C
- Type
breakpoint set -r . -s <PRODUCT_NAME>(insert your app’s name).
lldb will answer with something like…
Breakpoint 1: 4345 locations
Now just press the Continue button.
breakpoint set is lldb’s command to create breakpoints. The location is specified using a regular expression (-r) on function/method names, in this case . which matches any method. The -s option is used to limit the scope to your executable (needed to exclude frameworks).
When you run your app lldb will now break whenever the app hits a function from your main executable.
To disable the breakpoints type breakpoint delete 1 (insert proper breakpoint number).