Sometimes I ran into errors which are really hard to debug. So my meta question is the following: You have multiple chunks of code, let's say A -> B -> C -> D Your code don't crash but the result isn't what you expectedYou clearly don't know from where the error comes, so you tried to change all chunks one by one to find the bug. First A to a but crash the code so you undo your changes Then you try the same with B, C and DEach time you change the chunks it breaks your codeWhen the stars are aligned, you changed two chunks at the same time (e.g. B and C) and it works...So my question is: how can we avoid those situations? With my little 5 years of programming experience I encounter only the case where I have to change two different part of code. (Just imagine if you have to fix more than 2 chunk of code to see the true result appear.)I have never seen someone talked about this subject, but maybe I don't have the right words, so any suggestions to help me to gather more information about this subject are welcome.
Multiple error debuging
testing;debugging