如何使用 Xcode 4 断点操作
我想使用 Xcode 功能来记录某些数据。 类似的操作应该非常简单
NSLog(@"Size: %@", NSStringFromRect(self.view.frame));
事实上,实现与断点的Log Message
操作 。我尝试了这个的变体:
Size: @NSStringFromRect([[self view] frame])@
但失败了。
我已经搜索了 Xcode 文档,并对这个功能的记录有多糟糕感到惊讶。我能找到的唯一信息是关于如何在遇到断点时配置声音播放动作。
I want to use Xcodes capabilities to log certain data. In fact it should be quite simple to achive something similar to
NSLog(@"Size: %@", NSStringFromRect(self.view.frame));
with the Log Message
action of a breakpoint. I tried variations of this:
Size: @NSStringFromRect([[self view] frame])@
but failed.
I already searched the Xcode documentation and was surprised how bad that feature is documented. The only bit of information I was able to find was about how configuring at sound playing action when hitting breakpoints.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
怎么样
How about
另一种解决方案是:
输出不如 fourplusone 答案中的输出那么好,但它适用于提供良好描述的所有对象。
Another solution would be:
The output is not as nice as the one in fourplusone answer but it will work with all objects which provide a good description.