Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


Member Since 28 Sep 2013
Offline Last Active Dec 13 2014 11:09 PM

Topics I've Started

Dividing by zero, on purpose

31 October 2013 - 09:53 PM

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?