-----
Edit: sorry not sure if you were talking about Lua or a C-based Scheme, though I imagine it's the same.
-----
Edit: sorry not sure if you were talking about Lua or a C-based Scheme, though I imagine it's the same.
And it's important to be able to attach to a running process and move through the inter-language call stack (e.g. when debugging a deadlock under MPI (distributed-memory)). I haven't found a high-level language that offers this sort of interoperability, but I'd love to hear suggestions.
Which of the Lua debuggers is your favorite?
I wrote a Lua remote debugger myself years ago. A nice trick was that you can associate a string with a chunk of code when you load the code. Then you can retrieve that string from the debug API based on the current instruction. I used that to make a table of "chunk name" to "source" as a global variable in LUA. That made it easy for the debugger to retrieve the source regardless of where it came from (file vs interactive console vs who knows what).
GDB works across the language boundary, though. As far as it's concerned, Lua is just a C library.