How to Enable Debug Logging and What Does it Do?