How to change default LLDB settings

北城余情 提交于 2020-07-07 05:41:39

问题


From time to time I need to print long string using LLDB. Default LLDB setting trims printed string, and I have to type in this thing:

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

When doing next run this setting isn't persisted. Is there a way to set it so that all subsequent LLDB debugging sessions will respect this setting?


回答1:


Well solution is quite simple. First create file ~/.lldbinit and then put there commands you wish to be run when LLDB starts, in my case:

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


来源:https://stackoverflow.com/questions/40241532/how-to-change-default-lldb-settings

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