Fix debug mode and add explanation on how to set it on