Turn debug mode on and off after viewer has been created.
Debug Mode On
Debug Mode Off