Skip to content
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.

Current line of the script #112

Open
saleyn opened this issue Dec 23, 2015 · 3 comments
Open

Current line of the script #112

saleyn opened this issue Dec 23, 2015 · 3 comments

Comments

@saleyn
Copy link
Contributor

saleyn commented Dec 23, 2015

Is it possible anyhow to get programmatically the current line number of the script and the filename of the script being evaluated?

@hintjens
Copy link
Member

You can use the 'gsl.script' property though there's no line number.

On Wed, Dec 23, 2015 at 4:20 PM, Serge Aleynikov [email protected]
wrote:

Is it possible anyhow to get programmatically the current line of the
script and filename of the script being evaluated?


Reply to this email directly or view it on GitHub
#112.

@saleyn
Copy link
Contributor Author

saleyn commented Dec 23, 2015

It would be pretty useful to have a line number available for better error reporting (not to mention having access to the call stack)...

@hintjens
Copy link
Member

Feel free to make a pull request if you can figure out how to make this
happen.

On Wed, Dec 23, 2015 at 4:39 PM, Serge Aleynikov [email protected]
wrote:

It would be pretty useful to have a line number available for better error
reporting (not to mention having access to the call stack)...


Reply to this email directly or view it on GitHub
#112 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants