debug memory check