Improved Window sizing for debugging