Sends a debug-level message to the logging system.
- iOS 10.0+
- macOS 10.12+
- tvOS 10.0+
- watchOS 3.0+
A constant string or format string that produces a human-readable log message. See Formatting Log Messages.
Debug-level messages are intended for use in a development environment while actively debugging your subsystem, not in shipping software. Debug-level messages sent by this function are only captured in memory when debug logging has been enabled through a configuration change. They’re purged in accordance with the configuration’s persistence setting.
Calling this function is equivalent to calling the os_log_with_type function and specifying a log type of
OS. Note that lengthy log messages may be truncated when stored by the logging system.