5

I found this post which explains how to setup a conditional breakpoint in order to break on any printf function. What is the procedure to achieve something similar in XCode ? The purpose being obviously the debugger to stop when and where something tries to output anything in the console.

Community
  • 1
  • 1
Flavien Volken
  • 19,196
  • 12
  • 100
  • 133

1 Answers1

7

You could add a breakpoint in NSLog using lldb console like this:

breakpoint set -n NSLog

You basically have to pause execution, write that command in the console and then resume the execution. For step-by-step instructions and a way to reuse the command have a look here.

Rad'Val
  • 8,895
  • 9
  • 62
  • 92