Backup migrate restore fails silently

I just wanted to migrate a database from my dev server to my local environment (after having updated from OS X 10.6.8 to 10.9 the other day) and was surprised that the restore on my local machine silently failed. No error message, nothing. First I guessed that this had something to do with permissions in the file system. I checked and everything was fine. So where to look next?

See what a views query looks like

During development I often need to know what a fully build views query looks like. There are several ways to accomplish this, but unfortunately none of these really worked for me, so I build my own.