Define the publish_debug to allow us to test the uploader

re 6176