Reckless driving (speeding while driving at night) i caught myself directly when i started doing that.
Same for smoking. I stopped before i started.
The unhealthy coping mecanism for me was emotionnal eating, but i indulged in it after a breakup once i realized i could buy a kilogram of stevia dark chocolate chips, i ate it all in one month so ......