Add straggling debugging helper.

Another tool I was using for #511 that missed the potpourri commit.