By observing your addictive behaviors, you observe your conditioning. When you observe your conditioning, you're free of it, because you are not your conditioning; you are the observer of your conditioning.
The goal is to be the observer of your thoughts and not let your thoughts control you.