How do I debug XPC Services in XCode 4?

心不动则不痛 提交于 2019-12-05 09:22:48
Khakionion

Debug -> Attach To Process -> By Process Identifier (PID) or Name...

Type in your XPC service process name. The next time launchd starts up your XPC service, Xcode will attach.

I am actually not sure how to attach the debugger. But you can still use "NSLog" for debug output on the console. Then start the "Console.app" in "/Applications/Utilities/Concole.app". Depending on your system language this app may have a different name (it's localized). It shows ALL NSLog outputs from all Applications which are running including your xpc-services.

It's not the debugger, but you will get informations out of your service.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!