I live and work in bear country in/near Denali. At this point I wouldn't feel comfortable staying in the tent if any kind of bear was outside it. My ex-neighbor and her husband were killed and eaten in their tent in ANWR a few years ago, they even had a shotgun in the tent, never fired it. I shot a black bear outside my cabin that was just going from house to house seeing what it could get, after having obtained food from sloppy residents. Black bears are SNEAKY, compared to grizzlies, if a grizzly comes into your camp he just walks right in. A black bear is more inclined to sneak in when he thinks you're not looking. IMO, there's nothing better for any bear that gets close to you than a faceful of pepper spray, in my experience it works really well. Young grizzlies in particular will sometimes get right in your face, I'm not sure what they think they're doing.
So yes, I'm a believer in pepper spray, the medium-sized canister isn't all that heavy. M-80's are great, wish they still made them. The cracker rounds, beanbag, plastic and rubber slugs for shotguns all work pretty well, in different applications.
For me personally, it depends on my read of the bear, and I'm thinking mostly of grizzles. If I go out of my tent and there's a big dominant adult, I just back away if I can, unless he's already close enough to spray. If it's one of these dorky sub-adults, I'd use rocks or whatever, and a choice string of expletives. Good luck with the bears, they're extraordinary creatures.