panorama: make sure debug function exists