Configuration

Network agent options

typescript
initNetworkAgent({
  // WebSocket URL — optional. Omit to use mDNS auto-discovery.
  wsUrl: "ws://192.168.1.100:5051",

  // Enable/disable agent (default: true)
  enabled: true,

  // Maximum body snippet length (default: 3000)
  maxBodyLength: 3000,

  // Enable debug logging (default: false)
  debug: false,

  // mDNS discovery timeout in ms (default: 10000)
  discoveryTimeoutMs: 10000,
});

Console agent options

typescript
initConsoleAgent({
  // WebSocket URL — optional. Omit to use mDNS auto-discovery.
  wsUrl: "ws://192.168.1.100:5051",

  // Enable/disable agent (default: true)
  enabled: true,

  // Enable debug logging (default: false)
  debug: false,

  // Capture stack traces for errors/warnings (default: true)
  captureStackTrace: true,

  // mDNS discovery timeout in ms (default: 10000)
  discoveryTimeoutMs: 10000,
});

Expo config plugin options

The plugin only runs when listed in expo.plugins. To customize the iOS usage description:

json
{
  "expo": {
    "plugins": [
      [
        "rexpo-debugger",
        {
          "iosLocalNetworkUsageDescription": "Used by our internal debugger to discover this device on the dev network."
        }
      ]
    ]
  }
}
OptionDefaultDescription
iosLocalNetworkUsageDescriptionA generic dev-only stringOverride the NSLocalNetworkUsageDescription Info.plist value
forcefalseInject permissions even when EAS_BUILD_PROFILE === "production". Not recommended.