Added basic debugger functionality.  It might be good to make this a class later, and to prevent multiple instances.