For debugging purposes, I’d like to know which line a given statement in my script is on.
For example, if the statement below is on line 123, it should print 123:
-- the line below is 123, so it should print "123"
print('The current line of this print is', *CurrentLine*)
I know I have debug.traceback but it will print the whole traceback, not just the current line.
Is it possible?