xcode-debugger

What's the easiest way to print the value of a variable of type UIInterfaceOrientation?

拟墨画扇 提交于 2021-02-11 09:41:47
问题 As I debug my app, I want to print out the value of a local variable orien of type UIInterfaceOrientation . I tried print("\(orien") but it printed: UIInterfaceOrientation ... which is obviously useless. I then tried dump(orien) , which produced another useless output: - __C.UIInterfaceOrientation In Xcode, I set a breakpoint and right-clicked the variable and chose Print Description of , which produced: Printing description of orien: (UIInterfaceOrientation) orien = <variable not available>

How do I debug my Siri (Intents) extension?

我与影子孤独终老i 提交于 2019-12-06 01:43:22
问题 I'm building a Siri aka Intents extension . I do understand that I can attach the debugger to a running process after start, however, I never see my process. I do have the authorization for my app set to active and the extension must be running at least for some time, Siri is showing clear responses. By the Apple documentation, you should run the Extension Scheme with Siri as host app. However, if I try that nothing happens on the device, it's waiting to attach for ever. Apple mentions the

How do I debug my Siri (Intents) extension?

橙三吉。 提交于 2019-12-04 07:12:05
I'm building a Siri aka Intents extension . I do understand that I can attach the debugger to a running process after start, however, I never see my process. I do have the authorization for my app set to active and the extension must be running at least for some time, Siri is showing clear responses. By the Apple documentation, you should run the Extension Scheme with Siri as host app. However, if I try that nothing happens on the device, it's waiting to attach for ever. Apple mentions the first connection can take " several minutes ", but not hours ... Any idea where I'm going wrong or how to

Debug Notification Extensions

余生颓废 提交于 2019-11-30 04:19:12
I'm building a set of Notification Extensions (Service/Content). I'm unable to connect to Xcode debugger or even log out to the device log or console. Is there any way to see any kind of output? Change the target to run the extension then select run and choose your app from the 'Choose an app to run:' window. I have tried as per brendan's Answer but is not working for me at all! I am getting below error in console Program ended with exit code: 0 Then after searching on google i have checked this answer . however this also not worked for me for while! Then i have tried same steps again as given