Buffer Viewer
Buffer Viewer lets you view the stencil and depth buffers. This can make it easier to understand how your shaders work.
You can control where in the render queue the buffer is captured to see how it changes over time.
The viewer is a Scene-view overlay. To open it, click in the Scene View, press ` (lowercase tilde) , then turn on the "Buffer Viewer" overlay.