Debug memory controller