[转]让Xcode的控制台支持LLDB类型的打印

开启支持:

1. touch ~/.lldbinit

2. echo display @import UIKit >> ~/.lldbinit

3. echo target stop-hook add -o \"target stop-hook disable\" >> ~/.lldbinit

4. 重新运行项目

关闭支持: rm -rf ~/.lldbinit

 

用途: 可以在断点测试的时候进行如"po view.frame"之类的输出打印.

 

原文地址: http://www.cocoachina.com/ios/20151231/14846.html

posted @ 2016-01-06 14:56  言五六  阅读(217)  评论(0编辑  收藏  举报