---
title: debugLocation
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlfunctionlog/debuglocation
---

# debugLocation

If known, the location of the logging command within a shader source file.

## Declaration

```swift
var debugLocation: (any MTLFunctionLogDebugLocation)? { get }
```

## See Also

### Getting execution details

- [encoderLabel](metal/mtlfunctionlog/encoderlabel.md)
- [function](metal/mtlfunctionlog/function.md)
- [MTLFunctionLogDebugLocation](metal/mtlfunctionlogdebuglocation.md)
