Debounce can be accomplished without programming.

Go to the Tags tool.  The Input Bits now has the option to set the Debounce length from 0-255 ms.

Thats it.  In most cases, you’re done and there is no need to continue farther.