1

In vb.net doing debug.assert (false) will set a break point. I can then use this for conditional break point. Say break if a string contain \n

How to do the same for Objective-C programs in Xcode

Tadeusz A. Kadłubowski
  • 8,047
  • 1
  • 30
  • 37
user4951
  • 32,206
  • 53
  • 172
  • 282

2 Answers2

2

You can use conditional breakpoints if you don't want to/can't modify your code.

To have a breakpoint "in code" see questions that deal with it for Mac OS X and for iOS. They provide the Mac and iOS equivalents of calling int 3 in Windows (which makes the debugger break at that point).

Community
  • 1
  • 1
DarkDust
  • 90,870
  • 19
  • 190
  • 224
1

This blog entry should do the job if you are developping for Mac OS X.

Laurent Etiemble
  • 27,111
  • 5
  • 56
  • 81