Title: [Slightly OT] Finding bugs

Hi All,

How do you all go about this??

You have a bug in your code somewhere, but you are not sure exactly where the problem lies.  How do you find the bug??

I recently had this discussion with another programmer here, and we both use the same method, and it got me to wondering what method others use.

We both ended up, as a last resort, commenting out a block of code, compiling and running, commenting out another block of code ... until we found the offending piece of code ...

cheers, Craig

---
Craig Lemon, Information Developer,
Geodata Services, Christchurch City Council
PO Box 237, Christchurch, New Zealand
Ph: +64 3 941 8345 - Fax: +64 3 941 8384
mailto::[EMAIL PROTECTED]
---




**********************************************************************
This electronic email and any files transmitted with it are intended
solely for the use of the individual or entity to whom they are addressed.

The views expressed in this message are those of the individual
sender and may not necessarily reflect the views of the Christchurch
City Council.

If you are not the correct recipient of this email please advise the
sender and delete.

Christchurch City Council
http://www.ccc.govt.nz
**********************************************************************

Reply via email to