Me doing demonstration during the sprint review:
The first demo works
The second demo works
The third demo does not work
At that moment, with the fear of losing my lovely Friday afternoon and being devoured by the endless debugging and headache, I understood why the code doesn't work at all is not the worst thing. The code partially working is the worst thing.
----
Luckily it's not a trick issue to solve. I must be blessed.