How do I debug/troubleshoot where my click input is being captured if my GUI is not responding to it?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By maccam912

NOTE: I solved it, my issue was that my HBoxContainer Mouse filter was not set to Ignore. This made my buttons work now, but knowing of an easy way to break on any mouse click and follow it through would be useful

I have a GUI scene, with various containers for layout. This scene is instanced inside of a game scene, which has a viewport container, viewport with the game stuff, and the GUI as a sibling to the viewport:

GUI:
enter image description here

Game scene (with the UI highlighted):
enter image description here

Screenshot showing buttons along the bottom:
enter image description here

My issue is that clicking on the buttons does not work usually. I think the BoostButton can be clicked sometimes, but have not been able to click the CCW, CW, or Reset buttons.

I have a basic understanding of input handling, but it falls short of helping me debug this issue. I’m familiar with the built in debugger for gdscript. Is there some way to use that debugger to break on any mouse click input and follow it through to see where it is being handled? Is it possible there is some object in front of the GUI that isn’t letting the click through to the buttons?

Any help is appreciated. Thanks!

While your game is running, in the debugger you can navigate to the Misc tab and it will show you the last control node that as clicked as well as the type of control node it was. That is the extent of my knowledge though.

timothybrentwood | 2021-11-13 17:28

:bust_in_silhouette: Reply From: jshorty

Just amplifying @timothybrentwood’s comment from last year left above which answers OP:

While your game is running, in the debugger you can navigate to the Misc tab and it will show you the last control node that as clicked as well as the type of control node it was. That is the extent of my knowledge though.

This unblocked me as well and I’d upvote it if I could!

Me too - extremely useful to know, thanks TB.

madeofst | 2023-03-10 10:11