Here is the plan. At the debate, Trump deflects questions about hot mic, and lashes away at Hillary and the revelations about her. Then in his closing statement, Trump says he understands that his comments are drowning out everything else, and that he has become a distraction, and thus he is dropping out, and urges everyone to vote for Pence. Whether it works better to just leave the ticket in place, with the electors saying they will all vote for Pence, or to formally drop out, and litigate what appears on the ballot, and so forth, are mere details, for the wonks to work out.
I was about to say this is crazy, but then I realized that it's no more implausible than many things that have already happened in this election!