In a similar vein, the real task of debugging is not to make the program stop doing the wrong thing. It is to create in your mind an understanding of why the program as written necessarily behaves in the way it does.
Once you have that understanding, actually fixing the problem is straightforward.
Once you have that understanding, actually fixing the problem is straightforward.