I have used twisted.manhole in the past for a similar effect, but this is not quite the same situation (I suppose you could use a similar to patch in the manhole bits, but I always built it in to my services.)
I use pdb combined with django's dev server for a similar effect and it works surprisingly well. I'd like to know if there's a way I could get into apache/WSGI though.