I’m trying to debug a C/C++ application which uses Lua 5.1. At this stage it would be very useful to have a way of dumping a human-readable representation of the data on the Lua stack while debugging. I’ve found the function lua_getstack which looks like the right kind of thing, but I can’t find a way of invoking it through the LLDB command line and printing it as something human readable. Is there a better way of doing this?
I’m trying to debug a C/C++ application which uses Lua 5.1. At this stage
Share
You can use something like this and then call it from the debugger: