This is often said but if you want to "diagnose" something then the terribly limited Android shell is about the last place you want to be, and a sandboxed one on top of it is worse ....

Why debug your daily driven phone? You can use Cuttlefish or anything else.