Debug code for native app