<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLFunctionLogDebugLocation",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLFunctionLogDebugLocation"
  },
  "title" : "MTLFunctionLogDebugLocation"
}
-->

# MTLFunctionLogDebugLocation

The source code that logged a debug message.

```
protocol MTLFunctionLogDebugLocation : NSObjectProtocol
```

## Topics

### Inspecting the location details

[`functionName`](/documentation/Metal/MTLFunctionLogDebugLocation/functionName)

The name of the shader function.

[`url`](/documentation/Metal/MTLFunctionLogDebugLocation/url)

The URL of the file that contains the shader function.

[`line`](/documentation/Metal/MTLFunctionLogDebugLocation/line)

The line that the log message appears on.

[`column`](/documentation/Metal/MTLFunctionLogDebugLocation/column)

The column where the log message appears.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)