Debugging architecture