开发者

How to set breakpoints in Objective-C program in Xcode?

开发者 https://www.devze.com 2023-03-05 16:47 出处:网络
In vb.net doing debug.assert (false) will set a break point. I can then use thi开发者_如何学编程s for conditional break point. Say break if a string contain \\n

In vb.net doing debug.assert (false) will set a break point. I can then use thi开发者_如何学编程s for conditional break point. Say break if a string contain \n

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


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).


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

0

精彩评论

暂无评论...
验证码 换一张
取 消