Search code examples
debuggingreturn-valuelldb

Inspect the return value of a function in lldb


Is it possible to inspect the return value of a function in lldb assuming the return value is not assigned to a variable?


Solution

  • Step out of the function, and see return value in inspector. Here is my screenshot:

    enter image description here

    See article for more details: https://gist.github.com/schwa/7812916