Let's say that I have a metal shader (Kernel) that only executes if some condition happens. How Can I debug it? I tried unsuccessfully to put a breakpoint after commandBuffer.waitUntilIsScheduled() when the condition is true and the command buffer with the shader is commited, but the command buffer dosen't appear when I capture the frame...
Any hint?