How to avoid shipping debugging code in to production?