And again, the key to finding a solution was simply writing a message asking for help - and then realising the solution before I had even sent it.
Olivier Mehani likes this.
I ended up writing my first bit of PHP in many years to get the information that I really needed. It was really obvious stuff that should have been in the debug output! I may push a patch upstream.
Rubber ducking ftw. We have started doing regular code reviews in the office, and as a result I have started shaping things up in anticipation of having to explain my code to someone. “He is going to ask why I am doing doing this thing here. Why am I doing this thing here? I think I have to because foo, but I'm not sure. Hey, that's not too difficult to find out, I'll try it out now.”