back
loading skill details...
Debug JS with Argent in React Native (iOS, Android, Vega, macOS) or Chromium/Electron (CDP). Use when reading console logs, inspecting React trees, evaluating…
1. Prerequisites Physical iPhone: not supported; every debugger-* tool rejects kind: "device". React Native (iOS / Android): Metro running (default localhost:8081) and the app connected to it. Verify with debugger-status. Android: a physical device, a TV emulator, or a dev client that loads from localhost needs adb -s <serial> reverse tcp:<port> tcp:<port> (default 8081). If list-devices returns a note about the adb server, prefix the command as the note shows. Run it again after a reboot or an adb restart; Argent doesn't restore it. A bare RN app on a phone emulator uses 10.0.2.2 and doesn't need it; react-native run-android and expo run:android set it up themselves. Vega (Fire TV): a Debug .vpkg (a Release build never attaches) and Metro reachable from the device (vega device start-port-forwarding --port 8081 --forward false). debugger-component-tree, debugger-inspect-element, debugger-reload-metro and the react-profiler-* / profiler-* tools are unavailable there; see references/vega.md of the argent-tv-interact skill. Chromium (CDP): an Electron app booted with boot-device electronAppPath, or a Chromium browser exposing a CDP port (list-devices finds it). Pass its chromium-cdp-<port> id as device_id. Only debugger-connect, debugger-status, debugger-evaluate, debugger-log-registry, view-network-logs and view-network-request-details work there; the other debugger and profiler tools are React Native only. 2. Tools Use the device_id from list-devices and keep the same ID and Metro port across calls. On shared Metro, if debugger-connect cannot match an iOS simulator UDID or Android serial, it lists logical IDs. Choose the requested device's logicalDeviceId for subsequent debugger calls. If you later tear down this session, include that ID in stop-all-simulator-servers's devices.
don't have the plugin yet? install it then click "run inline in claude" again.