Inspect a running app's JS runtime, logs, and network with the conductor CLI — evaluate JS in React Native (Hermes) or the web page, dump the React component tree, read console/Metro/device logs, and inspect or issue HTTP requests. Use when debugging app behavior, reading logs, evaluating expressions in the live runtime, inspecting React components, or examining network traffic.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Conductor Metro Debugger?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/douwebos-conductor-metro-debugger)
---
name: conductor-metro-debugger
description: Inspect a running app's JS runtime, logs, and network with the conductor CLI — evaluate JS in React Native (Hermes) or the web page, dump the React component tree, read console/Metro/device logs, and inspect or issue HTTP requests. Use when debugging app behavior, reading logs, evaluating expressions in the live runtime, inspecting React components, or examining network traffic.
---
# Conductor — runtime debugging, logs & network
Inspect what a running app is doing under the UI — its JS runtime, console
output, and HTTP traffic. Works against React Native (Hermes/Fusebox) and
Playwright web.
## Runtime (React Native / web)
| Command | Purpose |
|---|---|
| `conductor debug status [--port N]` | RN debugger connection info |
| `conductor debug evaluate <expr> [--port N]` | Run JS in the app runtime (Hermes or web page) |
| `conductor debug component-tree [--port N]` | On-screen React component tree |
| `conductor debug inspect-element <x,y>` | React component at a screen point |
| `conductor debug log-registry [--source metro]` | Summarize recent Metro/Hermes console logs |
| `conductor native-rn-set --react-tag <n> --path <dot.path> --value <json>` | Live-edit an RN component's props via React DevTools `overrideProps` (text via `--path children`, color via `--path style.color`). Dev builds only |
| `conductor native-rn-props --react-tag <n>` | Raw JSX props (`memoizedProps`) of an RN fiber by reactTag — the JS-side truth for Fabric where native `/props` `rawProps` is null |
`--react-tag` comes from `native-inspect`'s `rn.reactTag` (see `conductor-native`
for the native-plane instrument). `--value` is JSON (a bare
string works for text). `--path` is a dot path into props: `children`, `style.color`,
`style.fontSize`, `accessibilityLabel`. `style.color` works whether the component's
`style` is an object or a composed array. These drive React itself over Metro CDP, so
they need a **dev/debug build** (the DevTools backend must be active) and a running
Metro; on a release build they return a clear "not a dev build" error. Output is
`{"status":"ok","applied":true}` or `{"status":"error","message":"…"}`.
## Logs
| Command | Purpose |
|---|---|
| `conductor logs --recent <n>` | Last N buffered log lines — **agent-friendly, exits immediately** |
| `conductor logs [--source metro\|device] [--level …] [--json] [--duration s]` | Stream logs (bound it with `--duration`) |
| `conductor logs --list` | List Metro debugger targets for this device |
Prefer `logs --recent N` over a bare `logs` stream — don't leave a stream
running indefinitely.
## Network
| Command | Purpose |
|---|---|
| `conductor network logs [--limit N]` | Recent HTTP traffic (RN fetch/XHR shim; web via Playwright) |
| `conductor network request <url> [--method M] [--body STR] [--header K=V]` | Issue an HTTP request from the app's context |
## Metro bundler
| Command | Purpose |
|---|---|
| `conductor metro reload [--port N] [--target N]` | Reload the JS bundle without restarting native |
| `conductor metro stop [--port N]` | Stop the Metro bundler on a port (default 8081) |
| `conductor metro use <port\|host:port> [<appId>]` | Point the app at a specific Metro (iOS/tvOS simulators, react-native-macos apps) |
| `conductor metro use --reset [<appId>]` | Drop that override, back to the compiled-in port |
An app asks for the Metro port compiled into React-Core from `RCT_METRO_PORT` at
pod-install time, so a build can end up asking for a port nothing is serving —
typically a git worktree whose Metro runs elsewhere, or a pod install from a
shell that lacked the env var. Symptom: the app never loads a bundle (or keeps
running a stale one) while `conductor metro reload` works fine against the port
you expect. `metro use` overrides it via the `RCT_jsLocation` preference, so no
recompile is needed and the setting survives reinstalls. **Relaunch the app**
afterwards — it is read when the bridge starts. The app id defaults to the
current session's. On macOS (`--device macos`) it writes the host's `defaults`
for the app — into the app's container when it is sandboxed.
Android has no such preference; map the port with
`adb -s <serial> reverse tcp:8081 tcp:<metro-port>` instead.
## Tips
- `--port N` targets a specific Metro/debugger port when auto-detection isn't enough.
- Add `--json` for machine-readable output.
- For crashes and performance, see `conductor-profiler`.