Redirect lldb output to file
问题 I'm using lldb inside Xcode, and one of my variables contains a huge chunk of JSON data. Using po myVar isn't much helpful to analyse this data, as it will output in the tiny Xcode debug console. Is there a way to redirect lldb output to a file ? I saw here that such a feature seems to be available on gdb as : (gdb) set logging on (gdb) set logging file /tmp/mem.txt (gdb) x/512bx 0xbffff3c0 (gdb) set logging off and is "translated" in lldb as : (lldb) memory read --outfile /tmp/mem.txt -