I'm looking for errors in my scripts but I need to find Where the function is called from
Example:
function A (string)
-- print(Where the function is called from)
print(string)
end
A("Hello")
In this case, it would print something like: "Function A got called from line 7" When an error occurs, it shows where the function, if there are functions called each others, is called from.
Anybody know? Thanks.

2 comments
When there is an error, it will show which line it threw the error.
Well here is the problem, it's not an error that I get, it's a normal running code, but I need to know where the function is called... Very hard to explain erm