Debugging support for apps

Change-Id: I352346193c65cd27606ca54748d77da031858154