在xcode 6调试控制台中打印长字符串 [英] print long string in xcode 6 debugging console

查看:477
本文介绍了在xcode 6调试控制台中打印长字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我仅能将我的String的1022个字符显示在Xcode6的调试控制台中.实际长度约为2500个字符.

I am getting only 1022 characters of my String to display in the debugging console of Xcode6. The actual length is around 2500 characters.

是否可以在控制台中显示所有字符,还是必须将它们写到文件中?

Is there a way to display all character in the console or do i have to write them in a file.

我在控制台中尝试了print,但是仅显示1023个字符.

i have tried print in the console but that displays only 1023 characters.

首先我尝试使用println(sqlstatement),但是没有用.其次,如上所述,我在调试控制台本身中使用了print sqlstatement.哦,调试器是 lldb .

First i tried with println(sqlstatement), that did not work. Second, as mentioned above, i used print sqlstatement in the debug console itself. Oh and debugger is lldb.

关于阿达卡斯

推荐答案

感谢您的@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.

这篇关于在xcode 6调试控制台中打印长字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆