Skip to content

show line numbers for runtime errors? #33

@thauschildt

Description

@thauschildt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions