57

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.

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

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.

Regards Adarkas

3
  • I printed a 3000 character string, and it printed :/ Commented Jul 14, 2015 at 9:03
  • With out the code how you are posting we can not tell what is going on. So post the code where you printing the string. Commented Jul 14, 2015 at 9:12
  • edited my question and thanks for the help. How did you print your string @VinayJain? Commented Jul 14, 2015 at 9:46

1 Answer 1

121

I found an answer thanks to your comment @nms. The command line for lldb is

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

with 10000 being the number of characters that are printed.

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.

Sign up to request clarification or add additional context in comments.

1 Comment

To run it by default, add this command to ~/.lldbinit file. As explained here stackoverflow.com/a/40242547/2505726

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.