Debug layer show/hide event?

Hi, I would like to know when the user shows/hides the debug layer, but I can not find any such event. Any suggestions?

Found a solution myself, disabled the default button and built my own.

2 Likes