show search queries more accurately in --debug output