How to have a good argument!

We can learn from Parashat Korach the difference of a good dispute and an immoral dispute.  How do we differentiate between the positive and productive argument, such as the arguments between Beit Hillel and Beit Shamai, and the counterproductive and even damaging arguments of Korach and his community with Moshe?