SDK Debugging
Debug Mode
In case you would like to view your data on the dashboard without having to wait for the SDK's default 6-hour batching period, you can simply bypass this by running the app while attached to the debugger.
Attaching the app to the debugger will sync the data captured by our SDK upon closing a session and starting a new one. This can be especially helpful if you are debugging an integration issue or simply trying out APM for the first time.
Logging
APM SDK provides useful console logs in Xcode for you to be able to have visibility into significant events that might be of interest to you. Since not all events are equal in terms of importance or relevance, you can control the level of verbosity of those logs via the following API:
The available levels are:
None: disables all APM SDK console logs.Error: prints errors only, we use this level to let you know if something goes wrong.Warning: displays warnings that will not necessarily lead to errors but should be addressed nonetheless.InfoThis is the default level, and it logs information that we think is useful without being too verbose.Debug: Use this in case you are debugging an issue. Not recommended for production use.Verbose: Use this only ifDebugwas not enough, and you need more visibility on what is going on under the hood. Similar to theDebuglevel, this is not meant to be used on production environments.
Last updated