LuaDardo
LuaDardo copied to clipboard
show line numbers for runtime errors?
Is it possible to get the line number in which a runtime error occurs?
If I run the code:
try {
ls.loadString("x=123 \n x()");
ls.call(0, 0);
} catch (e) {
print(e);
}
only the error message "Exception: not a function" is thrown.
For debugging larger scripts, it would be nice if the line number, in which the error occured, would be shown.