Allow debugging config to take an IO object.