add stack args to print error stack info for debug