Added some debug statements to investigate crash during window resizing.