move some snippets to debugging-layout