http://lexikos.github.io/v2/docs/comman ... #Exception
...this doesn't appear to work in v2:
https://autohotkey.com/board/topic/7148 ... ne-number/
This code shows "3" in the messagebox
Code: Select all
TheCalledFunction()
TheCalledFunction() {
exception_object := Exception("", -1)
line_number := exception_object.Line
MsgBox %line_number%
}