The major debates were over representation in Congress, the powers of the president, how to elect the president (Electoral College), slave trade, and a bill of rights.
The compromise was to have one house of Congress (the House of Representatives) base its representation on population (with each state having at least one representative) and for each state to have two senators in other house (the Senate) regardless of population. This compromise has worked for more than 200 years.