I'd like to not spend 20 years in prison because I did something that my State deemed inappropriate while defending my family after someone broke into my home. I'm going to defend myself. I'm going to do so in a way that both my conscience and my knowledge of the laws in my area guide. I'm not telling you not to defend yourself, or your family, or your property. I'm saying you should understand the laws you live with. Shooting someone for breaking into your home, without showing intent to harm you or another person inside is MURDER in most of the US. Some places have different rules, hence why I made my initial suggestion to know the rules where you live.
Castle Doctrine and Stand Your Ground laws differ in every State, and don't specifically address what I'm saying. Stand Your Ground, at its core, means you have no duty to retreat in public. Castle Doctrine, at its core, means you have no duty to retreat your own home. Many states that have these laws ALSO add other things to them in the same bill that created them, that provide different protections, such as what was noted above with quotes from Georgia's law. YOU should know YOUR laws.