gallery debug