Skip to content

Instantly share code, notes, and snippets.

@marco-we
Created June 1, 2016 13:19
Show Gist options
  • Save marco-we/9e193166cb85cda1aeb61af1ce822451 to your computer and use it in GitHub Desktop.
Save marco-we/9e193166cb85cda1aeb61af1ce822451 to your computer and use it in GitHub Desktop.
lldb print string
if you want to print an char* via lldb, lldb only prints the first about 300 characters. to print the complete one just type:
`set set target.max-string-summary-length 10000`
in the lldb command line. now the first 10000 characters are print via:
`p someCharPointer`
(source: http://www.web0.at/lldb-print-complete-char-string/)
@aminya
Copy link

aminya commented Apr 15, 2024

In VsCode's Code lldb setting

/cmd settings set target.max-string-summary-length 10000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment