---
title: debug
framework: os
role: symbol
role_heading: Type Property
path: os/oslogtype/debug
---

# debug

The debug log level.

## Declaration

```swift
static let debug: OSLogType
```

## Discussion

Discussion Logging a message of this type is equivalent to calling the os_log_debug function. Use this level to capture information that may be useful during development or while troubleshooting a specific problem. The system only captures debug-level messages in memory when you enable debug logging through a configuration change, and purges them in accordance with the configuration’s persistence setting.

## See Also

### Getting Log Types

- [info](os/oslogtype/info.md)
- [default](os/oslogtype/default.md)
- [error](os/oslogtype/error.md)
- [fault](os/oslogtype/fault.md)
