Feature - Implemented print line number

ckb

Minion
Staff member
It would be nice to print the line number of a print statement, much like print(__FILE__); Maybe print(__LINE__);

Also, would be helpful in large scripts with abort(__LINE__); to show where it aborted.
 

heeheehee

Developer
Staff member
For now, you _should_ be able to use get_stack_trace() for your first request.

For your second request, try `set printStackOnAbort = true`. It defaults to false because I found it was rather spammy when I was testing it initially.
 

ckb

Minion
Staff member
Oh nice! I learn something new today - this does exactly what I am looking for. Thanks!
Happy New Year to me!
 
Top