Stabbing someone simply for breaking into your home cannot be done and would get you into trouble if you can't prove that your life was actually in danger.
If someone is in your home you must leave the home if possible and then call police.
You have a duty to retreat before using deadly force or harm to the burglar.
Now if the burglar is about to harm you and you have no way of getting out of the home and away from harm then yes you can legally stab the burglar if you have too.
But simply for stealing your stuff and breaking into your house you cannot stab or shoot the burglar unless they are about to harm you or your family and you have no other option to get away from them.
If you're in your home and you hear a burglar in your home or think you hear a burglar in your home you should try to get out of the home even through a window and get to safety and then call 911 to report the burglary.
The police will then come and deal with the burglar and make sure everything is safe.