debugging: print layers for the current instance