I am looking for a term which succinctly describes the age-old problem when someone is trying to fix a problem, and tweaks and changes many different things to try and fix it. When they finally do see that the problem is fixed, they are no longer sure (or are misled) as to what change or even combination of changes actually fixed the problem.
Does such a term exist? My initial thought was an XY problem, but when I looked up the definition it's not really what I'm looking for.
Here's an example: you are debugging some computer code, and to try and fix it you remove a line of code and re-run the programme. Each time you remove a line, and run. When the programme finally runs properly, it is not necessarily the last line of code that you removed which fixed it. It could be any combination of the removed lines of code, or even something unrelated in the environment.