Querying in debug uses proper select method and allows select format type, regarding #520.