Being able to easily figure out the id of a button, the required right and maybe some other info like that directly from the BO would be super handy.
A possible solution could be to display it as a tooltip instead of the regular tooltip when hovering a button with the Ctrl key pressed.
The new tooltip text needs to be copiable.