What's the best way to log debug info in an iphone app?

后端 未结 5 1619
执笔经年
执笔经年 2021-02-05 18:26

Is there some standard way or has anyone written something that allows you to log a message and have it be displayed either in a small scrolling section on the iphone screen or

5条回答
  •  太阳男子
    2021-02-05 19:21

    If your have an application that is crashing then your can ask the users you the crash log. The crash log contains information about what the application was doing when it crashed and the stack trace.

    iPhone app log files are also stored on your users computer, and are copied across everytime they sync their iPhone. ( Note that DEVICE_NAME will be the same name of your iPhone in iTunes, and each log file will begin with the name of the app. )

    Mac OS X : /Library/Logs/CrashReporter/MobileDevice//

    Windows XP: C:\Documents and Settings\Application Data\Apple computer\Logs\CrashReporter\

    Windows Vista: C:\Users\AppData\Roaming\Apple computer\Logs\CrashReporter\MobileDevice\

提交回复
热议问题