Question: Is it advisable to have a general home inspection done before I put my home on the market?
Yes. It is a benefit for you and your potential buyer. While you may know of obvious defects, a home inspector should be able to identify things that you may not have been aware of. By knowing this up front you can address the issues before putting the house on the market. If you are not in a position to complete the work, you will have time to secure estimates and factor the cost of the repairs into your list price.
The pre-listing inspection report is given to your buyers. They can use this information to make an informed decision with regard to what to offer and how to budget for future maintenance. Having inspection issues addressed before you begin to negotiate is a win-win.