Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change default LLDB settings

Tags:

xcode

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

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?

like image 744
solgar Avatar asked Dec 25 '22 00:12

solgar


1 Answers

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
like image 182
solgar Avatar answered Jan 03 '23 15:01

solgar