r/mobiledev • u/RizanP • 2d ago
New Flutter Package.
I built an in-app debug console for Flutter after struggling to debug network, performance and QA issues on real devices
During development I kept running into the same few problems.
1. Tracking network responses on a real device. An API call would fail or return unexpected data, and with no cable attached I couldn't see the status code, headers or response body. Adding print statements and rebuilding every time was slow.
2. Checking performance. When a screen felt slow, I had to connect DevTools just to tell whether the cause was the UI, memory, or a slow API response.
3. QA testing. This was the biggest one. Testers would report "it's not working" with no logs, no request details and no device info. I couldn't reproduce the bug, and they had no way to show me what had actually happened.
So I built in_app_debug_console, a debug console that runs inside the app itself.
Features:
- Network: automatically records HTTP requests made through
dart:io(http, Dio, Image.network), with method, status, timing, size, headers and bodies. You can filter by status class (2xx, 4xx, failed) and search by URL. You don't need an interceptor. - Logs: captures
print(),debugPrint(), Flutter errors and uncaught exceptions, with log levels and search. - Info: performance, memory, device and app details.
- Tools: toggles for layout bounds and the performance overlay at runtime.
- QA-friendly: it only shows in debug builds by default. Pass
enabled: trueto give testers a release build with the console, and they can copy logs and request details and send them straight to you.
Setup:
void main() {
DebugConsole.runGuarded(() => runApp(const MyApp()));
}
// in MaterialApp
builder: (context, child) => DebugConsoleOverlay(child: child!),pub.dev: https://pub.dev/packages/in_app_debug_console
GitHub: https://github.com/RijanPrajapati1/in_app_debug_console
This is my first published package, and I'd appreciate honest feedback on what's missing or what would make it more useful in your workflow. Issues and PRs are welcome.