Just curious if anyone else does this.
Sometimes I have an if statement block I don't know is running. I know the code before, and after, the block is running fine.
So, I put a divide by zero after it. I know there are more sophisticated ways of debugging, and I have used them. But for a quick and dirty, I make an error by dividing by zero. I was going to stop the program anyways.
So I was just curious if anyone has ever purposely made an error in a section of code to see if part of it was running or not?