Template debugging