At their fourth debate this election season, the Republican presidential candidates took on the economy, foreign policy – and each other.