layer debugging