| The Binary search is a way to search for something and this method can be used to solve problems. With this method, you may not know where an error is occurring. This happens in: You take the failing item and split it in half to see if it works. If it does then you know the problem is in the other half. Now split this section in half and keep repeating this process until you isolate the location of the error. I just used this method to solve an unexpected error 500. I was cleaning up old files and all of a sudden my website stopped working. I used this method by deleting half the code at the end and the code failed. I did this again leaving 1/4 of the code and it worked. I went add back another 1/2 of the 1/4 and I saw the issue. A file I moved was being used. |