New query debug command