What do you when there is something wrong with the code?

Sometimes, I prefer to go and check each line while other times, I just start all over again. Do you do this?