I'm not really sure how to connect a debugger. But you can use "NSLog" to output debugging to the console. Then run "Console.app" in "/Applications/Utilities/Concole.app". Depending on your system language, this application may have a different name (it is localized). It displays ALL NSLog output from all running applications, including your xpc services.
This is not a debugger, but you will receive information from your service.
source share