Can you try this in the console.
sap.ui.getCore().byId("buttonid").mEventRegistry["press"][0].fFunction
here buttonid - Id of the button
press - is the event i have attached to the button.
When you do this,
![Capture.PNG]()
You will be getting the event .
Hope this will be of some help.