appo: improve reliability of entering debug mode

A certain pattern seems to make entering debug mode really easy.
Return this pattern as part of debug setup.