Add a way to handle debug commands without closing the DebugActivity