Posted 03 June 2015 - 12:13 AM
Would it be possible to implement stack traces? It's somewhat bothersome that none are present. Obviously, the issue is that pcall only gives the original error, but would a native os.pcall which gives a stack trace be possible, with the shell using that instead of lua's pcall?
An alternative would be implementing a limited selection of functions from the debug library, namely debug.traceback() in a sandboxed way (discarding any traceback above the computer's bios's level), which could then be used with xpcall.
An alternative would be implementing a limited selection of functions from the debug library, namely debug.traceback() in a sandboxed way (discarding any traceback above the computer's bios's level), which could then be used with xpcall.
Edited on 02 June 2015 - 11:09 PM