Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uses
- ECallStack,
- EClasses,
- EDebugInfo;
- procedure TForm1.Button1Click(Sender: TObject);
- procedure Test;
- var
- Caller: Pointer;
- Info: TELLocationInfo;
- begin
- Caller := TEurekaStackList.Caller;
- Info := GetLocationInfo(Caller);
- Label1.Caption := Info.UnitName + '.' + Info.ClassName + '.' + Info.ProcedureName;
- // Will output: 'Unit1.TForm1.Button1Click'
- end;
- begin
- Test;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement