Within a function - get the function name - is it possible

Is it possible within a function to programmatically extract the name of the function?

Once extracted, I want to pass the function name (with other info) to my debugging routine. At present, within each function, I am hardcoding the function name and then pass it to my debugging routine.


Thanks Kem. It even supplies me with the calling Window which I didn’t bother with manually, too much typing. At least now I can rename functions and not worry about this aspect.

As near as I can tell, Xojo prefixes this as a constant to the top of every method before compiling, so it’s not even a function call.