Airglow SDKOpen SDK beta docs
Extension-owned runtimeOpen SDK beta
Dev workflowDeveloper workflow

Local Debugging

How to inspect userscripts, UI iframes, startup failures, server RPC logs, and extension-side SDK messages.

Core Commands

CommandPurpose
pnpm run devRun the Next app server on port 3000.
pnpm run ext:devRun WXT extension watch mode.
pnpm run typecheckValidate TypeScript for the platform app.
pnpm run log:watchTail extension logs.
curl -s -X POST localhost:3101/reloadTrigger local extension runtime reload when native reload server is running.

Browser Inspection

  1. 1Use CDPProject debugging uses Chrome DevTools Protocol on localhost:9222, not browser MCP tools.
  2. 2Inspect extension pagesOpen the app-shell, dashboard, offscreen document, and service worker targets from CDP.
  3. 3Inspect userscriptsOpen the target web page and check the USER_SCRIPT world logs/errors.
  4. 4Correlate server logsServer API responses include request ids; match them with structured JSON logs from the app server.

Common Failures

SymptomLikely causeFix
Userscript does not runChrome Allow User Scripts disabled or match pattern mismatchEnable the toggle and verify manifest.userscripts[].matches.
includeCookies request rejectedMissing host_permissionsAdd a narrow Chrome match pattern to the manifest.
UI SDK call hangsSandbox bridge or app-shell message routing failedInspect the app-shell iframe and background service worker logs.
RPC returns { error, code, requestId }Server function threw or route failedCheck the request id in server logs.
window.open opens blank pageUSER_SCRIPT world has isolated window objectUse airglow.openWindow.