You are viewing an article about an obsolete product. Information on this page is provided as-is and not supported.

Help. I have thousands of lines of code and I appear to have a bug.

Whatever the size of the code you are debugging, one way to minimize the failure scenario is a method
called “binary search.”  After you can reproduce the bug, create the shortest program possible that demonstrates the problem. 

Basically, comment out half the code (more or less) and see which half of the program
the bug is in. Repeat until the problem is isolated.

Last updated: May 29, 2019

Recently Viewed

No recently viewed articles

Did you find this article helpful?