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
  • 16,172
  • 11
  • 86
  • 115

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,555
  • 8
  • 59
  • 91