Debugging write to memory