How to print more than 256 array elements in Xcode lldb?

巧了我就是萌 提交于 2019-12-06 03:25:08

问题


When I use p or print it will only print the first 256 elements.

How can I print all of them?


回答1:


You can tell lldb to force all the array elements to be printed for a particular expression evaluation thusly:

(lldb) expr -A -- array_variable

You can also raise the maximum number of elements (lldb calls them "children") that get printed by default by running:

(lldb) set set target.max-children-count 1024

or whatever value you want. You can also put this in your ~/.lldbinit if you want to up this limit for all your lldb sessions.



来源:https://stackoverflow.com/questions/42647198/how-to-print-more-than-256-array-elements-in-xcode-lldb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!