add dump log on error when debugging