Check out this [code snippet](http://www.thedailywtf.com/forums/65091/ShowPost.aspx).
The programmer couldn’t figure out why the AccountId variable sometimes wasn’t set right, so he decided to read the value from the application’s debug log file! What the hell?!