consider using set -x , the same way we use log level debug for cosmo