IT WORKS!
Move debug() out of interrupt handler