src: re-implement debugger-agent, fix things