Revert "revert to debug window class"

This reverts commit b08d34753fb0720de5f1803c75f4c217d9e5f5d7.