Like all windows, the in-game debug window provides GUI elements to minimize and close them. The one to close them is depicted as an X in the windows' title bar. While a user would expect that clicking this X would close the "Debug" window, it actually has no effect at all.