Debug when launched as a service

Debug when launched as a service