Move debug button to window