Skip to content

Developer debug panel: raw tx inspector, state export, RPC log #161

Description

@truthixify

Tier: M (2-4 days) | Type: feature

Context. src/pages/Debug.tsx is 69 lines and only shows a few contract IDs. Contributors debugging a failing send or scan currently need to open devtools and hand-decode XDR. Ship a developer-grade panel that renders the last N RPC calls, decodes the pending or last-broadcast tx (envelope + operations + memo), and exports the entire client state as JSON for bug reports.

Scope.

  • Ring buffer (last 100) of RPC calls per chain: method, URL host, duration, status, gated behind a "Enable RPC log" toggle so it does not run by default.
  • Tx inspector accepts an XDR envelope or pulls the last-broadcast one; renders decoded ops with links via StellarLink.
  • "Export debug bundle" produces a redacted JSON: settings, active profile id, activity count, notification count, RPC log, last error. Never includes scalars or seed material.
  • Import bundle from a maintainer for reproduction.

Acceptance.

  • RPC log toggle defaults off and clears the buffer when disabled
  • Bundle export passes an automated check that no key material is present
  • Decoded tx matches Stellar Laboratory output for a known envelope (fixture test)
  • Import bundle re-hydrates settings without touching the vault

Files. src/pages/Debug.tsx, src/lib/rpcLog.ts (new), src/lib/debugBundle.ts (new), src/lib/stellar/txDecode.ts (new).

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdemoAuto-created for Wave 8dev-toolsAuto-created for Wave 8dripsFunded via Drips NetworkfeatureNew feature workhelp wantedExtra attention is neededstellar-waveAuto-created for Wave 8wave-8Auto-created for Wave 8

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions