You can dry fire any gun other than a .22 rimfire like a S&W revolver with the firing pin attached to the hammer.
I've dry fired several of my competition pistols thousands of times while practicing with zero bad issues. Every competition shooter does the same.
And it's a good way to break in the trigger mechanism. Also on .22 guns, you can get some plastic drywall anchors from the hardware store, insert one into the chamber and dry fire with no damage. Or you can be really snobbish and get the specific dry fire caps, but wheres the fun in that???
I've got a few snap caps for the rifles. Teaching the boys breathing and trigger control and reloading after the shot. I have a couple Caldwell Bi-pods so practicing prone, kneeling and sitting in the living helps pass the time.