The WikimediaDebug browser extension lets you test patches before they are deployed, future PHP versions before they are rolled out etc. Equivalent functionality would be useful in the mobile apps. The Android app has a developer settings menu but (AFAICS) no setting for WikimediaDebug.
The extension basically does four things:
- Periodically fetch the list of debug backends from https://noc.wikimedia.org/conf/debug.json
- Offer a UI element to enable debug mode, and some widgets (a dropdown of available backends, and checkboxes for various features like verbose logging) to specify details.
- When enabled, add a custom header to every request, based on the previous two things. This will be something like X-Wikimedia-Debug: backend=k8s-mwdebug; log.
- Automatically disable after some time (15 minutes I think?). This is important, because people tend to forget disabling manually and the results in logspam that makes debugging hard.
A minimal Android implementation could just do the last two - maybe expose the entire header value as a developer setting.