---
title: NSDebugEnabled
framework: foundation
role: symbol
role_heading: Global Variable
path: foundation/nsdebugenabled
---

# NSDebugEnabled

A global variable that can be used to enable debug behavior in your app, such as extra logging.

## Declaration

```occ
extern BOOL NSDebugEnabled;
```

## See Also

### Diagnostics and Debugging

- [NSLog](foundation/nslog.md)
- [NSLogv(_:_:)](foundation/nslogv(_:_:).md)
- [NSDeallocateZombies](foundation/nsdeallocatezombies.md)
- [NSZombieEnabled](foundation/nszombieenabled.md)
- [NSKeepAllocationStatistics](foundation/nskeepallocationstatistics.md)
