debug gate