Jump to content

  • Log In with Google      Sign In   
  • Create Account

JD_Rushing

Member Since 28 Sep 2013
Offline Last Active Today, 10:03 AM

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?

 


PARTNERS