How to print/display full backdoor access path of a register?

In reply to dave_59:

Thanks Dave for your help. But I did not know how to make get_full_hdl_path return a string I can print with full hdl scopes.