A poorly-directed form of debugging, making various experimental changes to the source code in the hope that one of them will eventually fix the problem.
shotgun debugging
Some definitions on this page are adapted from Wiktionary, used under CC BY-SA 4.0. Credits.