There is SG_DEBUG to do that