I think the comic is describing a rather different problem.
I think it's a rather similar problem and a similar issue, except that what the OP sees as "the right way", I see as over engineering the solution. OrphanWilde has the better method for real life.
http://bitquabit.com/post/cargo-cult-debugging/