Some new debugging scripts. In varying degrees...

...of completeness.