且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在xcode 6调试控制台中打印长字符串

更新时间:2023-11-06 18:54:40

感谢您的@nms评论,我找到了答案. lldb的命令行是

I found an answer thanks to your comment @nms. The command line for lldb is

setting set target.max-string-summary-length 10000

打印的字符数为10000.

with 10000 being the number of characters that are printed.

除了在每次调试时都键入它以外,我还没有找到一种更好的方法来为lldb设置此设置,而不是在AppDelegate中设置一个断点以自动继续并将上面的命令添加到其中.

I haven`t found a nicer way to set this setting for lldb, other than typing it every time i debug, than to set a breakpoint in AppDelegate to auto continue and adding the above command to it.