Posted on 12. December 2023 by Jan Bunk
If you're a web developer, you're probably familiar with the browser's developer tools:
It's probably the most important tool for debugging errors on your website.
Apps created with webtoapp.design usually work out of the box, at least they behave mostly identical to how your website behaves in Chrome on Android and Safari on iOS. So if your website works fine there, you shouldn't encounter too many issues.
However, occasionally you might still feel the need to investigate some unexpected behaviour in your app. For cases like that, you can open your app's built-in console.
Opening the console is intentionally hidden, so regular app users don't accidentally open it and get confused. But even if they do stumble upon it, they can just close and re-open their app to get rid of it.
If your app has no way to access the settings, you can also open the console through the diagnostic information dialog:
Open any website by entering the URL in the dialog. This can be useful to navigate to secret (there's no link to it on the main website) test pages or staging environments that you might have.
This feature executes any JavaScript you enter and prints the result in the console.
This adds a small button which opens the Eruda JavaScript console for the current page you are viewing. It provides almost all features that you know from the browser console on your computer, for example the DOM tree elements explorer. You can read more about Eruda in it's GitHub project.
Since the logged messages can be a bit difficult to read and analyze, you can use this button to copy all the logged text so you can paste it wherever you want. For example you could send it to your computer where you might have a better text editor.
Hi, I'm Jan! I created webtoapp.design in 2019 while studying computer science in university. A lot has changed since then - not only have I graduated, but it's also no longer just me running webtoapp.design. We've grown to a global, fully remote team and have gathered lots of experience around app development and app publishing. We've created and published hundreds of apps in the app stores, where they've been downloaded millions of times.