Move debugger code to its own header/cpp