He should have already taken Trump up on his offer for a second debate the next week. He might be able to turn it around, but it would require things he has so far shown he isn’t willing to do.
And if he’s even considering stepping down, it’s already too late. He should do it now. I don’t know if there’s another path forward, but it’s not with him on the campaign trail.