Abappi
19

Expo DevTools: In-App Debugging for React Native

Creator and maintainer

An open-source library that puts browser-style developer tools inside an Expo or React Native app, for the developers building it. A floating button opens ten tools on the phone: Network, Console, Performance, Storage, Query, Navigation, Redux, Crashes, CLI and Debug. The same tools open as a tab inside React Native DevTools on the desktop, and a command-line tool lets a developer or an AI coding agent read what the app recorded and act on it from the terminal. I created it and I'm its only author: the in-app tools, the desktop tab, the CLI, and the native iOS and Android module behind performance and crash capture.

The in-app Network panel on a phone, with a mocked request marked Overridden here above the server's 500, beside the same requests in React Native DevTools (recreated interface, demo data)

Every request the app makes, open and editable

Every request, socket and stream the app makes shows up on the phone, with the tools to inspect it, slow it down or change its answer.

  • See fetch, XMLHttpRequest, WebSocket and server-sent-event traffic, including Expo's fetch, nitro-fetch and requests made inside WebViews
  • Open a request to read its headers, payload, response, cookies, the code that made it and a timing waterfall
  • Slow the app down to Slow 3G or offline, or make its requests present a different user agent
  • Answer a URL with your own status and body, or block it, without touching the server
  • Edit a captured request and send it again, or copy it as cURL or fetch code
A terminal running a devtools query for failed requests and printing them as rows, beside the app's CLI tab on a phone listing each query (recreated interface, demo data)

Let an AI coding agent debug the running app

A command-line tool lets a developer or an AI coding agent read what the app recorded and change things in it, straight from the terminal.

  • List the running apps and what each can be asked about, then read any tool's rows: requests, console lines, crashes, storage, navigation, Redux, Query and performance
  • Narrow the results with search, field filters and time windows, page through new rows, or get JSON for scripts
  • Mock or block a URL, send or replay a request, or call a function the app exposes, without touching the phone
  • Authorization headers and cookies are always masked, and a request that can change data or a call into the app needs --yes, checked inside the app
  • Every query and action shows up in the app's CLI tab, with the reply it got
The Crashes tab on a phone with a native exception from the previous launch open, showing its summary, the note that it was read back at launch, and its native frames (recreated interface, demo data)

Crashes you can read after the app restarts

When the app crashes, in JavaScript or in native code, the report is kept and waiting on the next launch, with what led up to it.

  • Catch JavaScript errors, unhandled promise rejections, render errors and native iOS and Android crashes
  • Native crashes are saved as the app goes down and shown on the next launch, marked as from the previous launch
  • Read the symbolicated stack, component stack, native frames, breadcrumbs and device information
  • Share a crash as a Markdown report or JSON, and jump from a console error to the crash it caused
  • Crash the app on purpose from the Debug tab to check it all works
The Performance tab on a phone, recording, with frame rate for the JS and main threads dipping during a stutter, the slowest tap and the JS heap (recreated interface, demo data)

Find what makes the app slow

Live frame rate, memory and CPU on the device, with the long tasks and slow taps behind a stutter.

  • Watch JavaScript and main-thread frame rate, memory and CPU while you use the app
  • See how start-up time splits up, from native start to the first render
  • Find long tasks that blocked the JavaScript thread and the taps that took longest to paint
  • Add your own marks and measures and see them next to everything else
  • Block the JavaScript or main thread for a set time from the Debug tab to see how the app copes
The Storage tab on a phone with a stored cart value open for editing, beside the same AsyncStorage keys in React Native DevTools (recreated interface, demo data)

Logs, storage and state, open on the phone

Read the console, edit what the app has stored, and see how its data and screens changed, without leaving the device.

  • Read console output with filters, and run code or call the app's own functions at a > prompt
  • Browse AsyncStorage, MMKV, SecureStore or any store you register; edit, add or delete keys and export or import snapshots
  • See every TanStack Query entry and mutation, and refetch, invalidate or force a loading or error state
  • Follow Redux actions with a diff of what each one changed, and dispatch your own
  • Watch screen moves across nested navigators, with a history you can export
React Native DevTools with the Axonpack tab open on the Console, its tab bar and theme menu showing, beside the in-app Console on a phone with the same lines (recreated interface, demo data)

The same tools on your desktop

The tools also open as a tab inside React Native DevTools on the computer, reading from the same app the phone shows.

  • One line in the Metro config adds the tab, and its panels follow the app's own tab order
  • When the app runs from Metro, an Open DevTools button on the phone jumps straight to the tab
  • Reorder tabs by holding and dragging; tabs that don't fit fold into a menu
  • Seven built-in themes, or your own: pick one on the desktop and the phone changes with it
  • Red badges on the tabs count new errors and crashes, and Reload restarts the app from the desk
100+more features in this system, not shown hereI build products like this one, start to finish: mobile apps and the tools behind them that just work, even as your business grows. Got an idea? Let's talk it through.Let's discuss →

Notable contributions

  • Built the Network tool: fetch, XMLHttpRequest, WebSocket, server-sent-event, Expo fetch and WebView traffic, each with a full request view and a timing waterfall
  • Built throttling, user-agent switching, mocked and blocked responses, and a sandbox to edit and resend a request
  • Built the devtools CLI and the in-app agent behind it, so an AI coding agent can query a running app and act on it, with secrets masked and risky actions confirmed
  • Built crash capture for JavaScript and native crashes that survives the crash and shows the report on the next launch
  • Wrote the native iOS (Swift) and Android (Kotlin) module for frame rate, memory, CPU, start-up timing, request timing and crash capture
  • Built the Performance tool: frame rate, memory, CPU, start-up, long tasks, slow taps, and marks and measures
  • Built the Storage tool, with ready adapters for AsyncStorage, MMKV and SecureStore, editing and snapshots
  • Built the Console with a > prompt that calls the app's own functions, plus the Query, Redux and Navigation tools
  • Built the tab inside React Native DevTools that mirrors the device, with themes and drag-to-reorder tabs
  • Wrote the docs, the demo app and the test suite, and ship every release through a changeset pipeline

Those are the highlights. There's plenty more I've worked on across this project, big and small, and I'm still building on it.