Yea a Lua type stack trace system would be nice you can get the calling function further up the stack, but alas!
you could implement your own pseudo stacktrace if you have a problematic function called from multiple places
something like
Function MyFunction(arg1, arg2, arg3, sCalledFrom As string)
Log("MyFunction("+arg1+", "+arg2+", "+arg3+")")
Log(sCalledFrom+"()")
EndFunction
// somewhere Else in the code
Function SomeOtherFunction()
argA = 123
argB = 456
argC = 789
MyFunction(argA, argB, argC, "SomeOtherFunction()")
EndFunction
But it would have to be giving me serious headaches for me to go to those lengths