Change the size of the debugger when the window is resized, closes #584