Added code to debug button

Still must add functionality to code