LuaDardo icon indicating copy to clipboard operation
LuaDardo copied to clipboard

show line numbers for runtime errors?

Open thauschildt opened this issue 11 months ago • 1 comments

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.

thauschildt avatar Mar 23 '24 13:03 thauschildt