54

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

Adarkas2302
  • 1,704
  • 2
  • 17
  • 25

1 Answers1

109

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.

Alex.Bullard
  • 5,533
  • 2
  • 25
  • 32
Adarkas2302
  • 1,704
  • 2
  • 17
  • 25
  • 7
    To run it by default, add this command to `~/.lldbinit` file. As explained here https://stackoverflow.com/a/40242547/2505726 – Insaf K Apr 23 '20 at 15:03