如何更改默认的LLDB设置 [英] How to change default LLDB settings

查看:88
本文介绍了如何更改默认的LLDB设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有时需要使用LLDB打印长字符串.默认的LLDB设置会修剪打印的字符串,我必须输入以下内容:

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

下次运行时,此设置不会保留.有没有一种设置方法,以便所有后续的LLDB调试会话都将遵循此设置?

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?

推荐答案

好的解决方案非常简单.首先创建文件〜/.lldbinit ,然后将您希望在LLDB启动时运行的命令放在此处,在我的情况下:

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

这篇关于如何更改默认的LLDB设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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