If it's a sliding glass door (like the one we have for a door out to our rear deck), lay a 3/4' or 1" dowel (about 30" long) in the track. Or if you don't have a dowel handy, a 1X2 board will work. Even if the home invader(s) has the best glass cutter in the world, they are not going to get that dowel or board out of the track, and unless they do, they'll never be able to slide that door open more than an inch or two - depending on how long the dowel or board is.
Our sliding glass door is worn out, and we're getting a new one later on this month, but that 1X2 board laying in the track is the only lock we've had on that door for about a year now. That's because about a year ago, my wife told me the door wasn't latching right. So, I with my gifted mechanical knowhow (and fumble fingers) tried to take the latch apart to see what was wrong with it. I dropped the danged thing down in the bottom of the door and can't fish it out even with a strong magnet!!
Oh well - the 1X2 in the track is more secure, and our sliding glass door is 30 some odd years old anyway.