I cannot find the option " Produce debugging information "

I want to debug metal shader using Xcode, but it prompt like this:

but the apple doc says that we can use this memod to solve, but I cannot find where " Produce debugging information " in XCode 12.5 https://developer.apple.com/documentation/metal/shader_authoring/developing_and_debugging_metal_shaders

Replies

Can you try filtering for "Metal" or "Produce Debug" in your project's Build Settings in Xcode, and make sure debugging information is including source code? Please see the attached screenshot for clarification.