Hello! I remember there should be a compiler macro in current FPC trunk to get the function name but I cannot find it: function TMyObject.DoSomething: Integer; begin Writeln(_CLASSNAME_, '.', _FUNCTIONNAME_); end; Does anybody know the macros or do I remember it wrongly? Thanks Ondrej