2

"p variable" command prints all the elements within the variable in lldb. In Swift, just regular print() statement does not do this. A hack would be to loop through the backtrace of the variable and print the elements. I'm curious if there is an easier way to simulate the in-depth printing mechanism like the "p" command I'm not aware of.

shle2821
  • 1,856
  • 1
  • 19
  • 26

0 Answers0