Debugger almost working