We have had several dogs and the absolutely best thing we did in several houses we have lived in was to install a doggy door. They go out when they need to and you don't have to worry.
-----------------------------
We used to love the IDEA of doggy doors, but the high numbers of burglaries in our town made that kind of unpopular. We, of course, had Dobermans, but others who had more friendly to strangers dogs, had burglars push kids through the doggy doors. The kids would then open the big doors for adults.