Home/Support / Knowledge Base / Help. I have thousands of lines of code and I appear to have a bug.

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: Aug 08, 2017

Recently Viewed Articles

No recently viewed articles
Contact a Digi expert and get started today! Contact Us