How to debug app when launch by push notification in Xcode

后端 未结 3 1719
刺人心
刺人心 2020-12-12 21:53

I am using Xcode 5. I am working with push notifications in iOS. I am getting satisfying results for background mode and foreground mode that can be debugged easily on an iO

3条回答
  •  暖寄归人
    2020-12-12 22:24

    You can also connect to the app in debug mode using the debug menu of Xcode : Debug > Attach to process by PID or name (start typing the name of your target and Xcode will autocomplete for you)

    As soon as the app is launched or if it is already launched, the debugger will be plugged. Really helpful in two cases :

    1. notification/location debug
    2. you didn't launch the app through Xcode but you have a strange bug you want to understand

提交回复
热议问题