The trick is the other person doing that too. Simply put a lot, if not most people don't want a rational debate where they discuss the many sides of an issue. They want to win.
Take religion for example, seemingly most people that have one tend to believe not only they are right about it (if you debate it's correctness it shows your lack of faith), they are trying to convert you and if they fail you are an enemy.