Redo the debug info script to be a more complete solution.