The fourth Republican presidential primary debate saw a litany of tense exchanges between the candidates on a range of issues.