When dividing assets, strive to share fairly with your spouse.
Debt will be allocated based not only on who incurred it, but also on what it was incurred for and who has what income.
Before selling your house, be sure that is the wisest financial course of action.
If one of you is going to have continued use of the house, be sure to spell out the time frame by which such use will stop; do clarify a mechanism for selling the house up front.
Consult with an accountant about the tax consequences of selling your house and keeping your name on the deed.