[英]How to debug ios8 share extension?
I tried two ways to debug while the extension is running: 在扩展程序运行时,我尝试了两种调试方法:
a. 一种。 using NSlog, such as 使用NSlog,例如
NSLog(@"%@", ((NSExtensionItem *)self.extensionContext.inputItems.firstObject).userInfo);
but no log shows. 但没有日志显示。
b. 湾 using code like 使用类似的代码
p self.extensionContext
in the lldb debug mode, but it tells me 在lldb调试模式下,但它告诉我
error: property 'extensionContext' not found on object of type 'ShareViewController *'
error: 1 errors parsing expression
You need to use simulator debug. 您需要使用模拟器调试。 On Simulator, click on Debug Menu, Open System Log. 在模拟器上,单击调试菜单,打开系统日志。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.