async or sync mode for debug