How do I debug where my mouse clicks are going?

There is something called a “Widget Reflector” that can be activated with ctrl+shift+W.

It didn’t help me with my issue and I’m not sure if it’s what you’re referring to but I thought I’d point it out nonetheless.