Improved debug window