How do you debate without putting a relationship at risk?
The emotional dimension is often the first one to deal with in a debate. The more secure it is, the better the chances that the substantive debate will be productive. Sacrificing the relationship in the name of a debate about ideas would therefore be self-defeating. The aim is to develop and secure the relationship beforehand, and to debate in a way that deepens it rather than endangering it.
Lean on the distinction between perspective and conclusion: we respect perspectives and personal paths, we owe no automatic respect to conclusions. Saying "you disgust me for thinking that" attacks the person. Saying "I hear what you have been through. On my side I have had other experiences that lead me to a different conclusion, would you like me to share them?" leaves room for mutual listening.
Restate before objecting. Until the other person has confirmed that you have understood them, anything you say will be received as a caricature.
Accept pausing. A conversation put on hold because it is heating up is not a failed conversation.
One last point, less obvious. What damages relationships is almost never the disagreement itself, it is the feeling of having been judged, misunderstood or looked down on. You can be in deep disagreement for a very long time without the relationship suffering.