I suggest if they've taken it as far as breaking into your house, and you can't scare them away (maybe something that _sounds_ like a shotgun getting cocked), you let them get away.
(Burglary implies you're not home- this is more robbery and home invasion at this point).
Losing a $3000 laptop is substantially cheaper than a $30,000 hospital bill and ambulance ride after you get lacerated from the knife they're carrying. If you're having trouble with the math, consider that you lose the $3000 laptop in both cases.
That's also assuming you're not more seriously injured or killed by trying to impede them. What multiple of $3000 is your life worth to you?
The nice thing about a shotgun is a large amount of energy is transfered into the person. Unlike a hardball bullet from a rifle that may go straight through like a hot knife through butter. There are special rounds for rifles designed to fragment and dump all the energy into the person (but these are lethal).
To rack or not to rack in a home defense situation is actually a somewhat debated topic. By choosing to rack, you're essentially giving up home field advantage in hopes that the intruders run. If they don't, you've just made your tactical situation far worse by announcing your position.
That said, if you're so committed to not taking life as to use less-than-lethal rounds in a shotgun (which I wouldn't recommend), you may as well rack it if confrontation is inevitable.
That said, the appropriate choice (including whether a weapon is a sensible choice) really depends on the detailed circumstances that you are addressing (living situation, local crime characteristics, and any personal circumstances that modify the threat profile from the generic one applicable to the locality.)
Second choice will be a pitbull.
Also I've known a signpost with the following words to be very deterrent if deterrence is also an option : "Please do not walk on this property unescorted. Pet Cobra on property. Insert picture of large realistic cobra" How many people are willing to rob a house with snakes?
And finally on weapons, i know a guy with a homemade flashlight casing taser. Not sure it's even up to 5000 volts but he claims its come handy in an altercation with an intruder before.
The equation changes if you have a family or other people in the house that are looking to you for protection.
I don't mean to downplay the real possibility of people dying from a gun related accident, but using the 30k figure without context is misleading.
Because real life doesn't work like the movies. Doing this in a home invasion situation might get you or others killed.
That isn't to say you can't warn the burglar(s) should it be safe to do so, but generally speaking if you're pointing a weapon at someone, the only valid reason is because you're prepared to deliver shots to center mass and kill them.