"The teacher debates with the student."
Translation:Die Lehrerin diskutiert mit dem Schüler.
If you mean that a teacher discusses with a university student (or someone studying at an equivalent institution in tertiary education), then your sentence is correct. If the teacher discusses with someone at school (primary or secondary education level), it is a Schüler.
In addition, the dative sing. form would be Studenten.