debug logging working xplatform