Before major refactoring
First draft of debugger architecture