One of the major complaints about PowerApps Development that I hear is the difficulties of debugging an app in PowerApps. In this post I’m going through a simple approach for debugging your PowerApps apps.
Now I also rename the Screen1 to DebugScreen as I don’t like the default names where controls are simply numbered.
Then I add a few more labels on my DebugScreen so that my variable values are displayed.
Huh, why would I want to do that? Within the PowerApps app I can display my variables.
Yes indeed you can do that, but now I’m going to take things to the next step. What if you want to debug non variable values?
Or what if you want to debug while you are running the app? Leaving the app and going to the Variables overview is quite a few clicks away.
You can now simply add a debug button to your application that displays all the debug values that you are interested in.
This Debug button will navigate to my Debug Screen with the following navigate function
Now we are nearly there. We just need to make the button invisible when the debug variable has been set to false:
All we need to do is set the visible field to Debug=true or just Debug would work as well of course and now we have our debug buttons available and we can inspect the app without leaving the app.