DebugBundle

Project Setup

Configure your DebugBundle project with profiles, connection modes, and environment settings.

Every DebugBundle project lives in a .debugbundle/ directory at your repository root. This directory contains all configuration, local event storage, and generated bundles.

Directory Structure

PathPurpose
.debugbundle/profile.jsonProject architecture and workflow profile
.debugbundle/local/connection.jsonCloud connection and delivery settings
.debugbundle/local/events/Raw local event files
.debugbundle/local/state.jsonGrouped local incident state
.debugbundle/local/browser-relay-spool/Durable browser relay spool for connected mode
.debugbundle/bundles/local/Generated local bundles
.debugbundle/bundles/local/reproductions/Generated local reproduction artifacts
.debugbundle/bundles/cloud/Downloaded cloud bundles

Getting Started

Initialize a project with the CLI:

debugbundle setup

This creates the local scaffold with a profile.json based on your repository structure and a .debugbundle/local/connection.json file defaulting to local-only mode.

Configuration Files

FilePurposeReference
profile.jsonProject architecture, services, infrastructure, workflows, and agent hintsProfile
local/connection.jsonCloud mode, delivery settings, environment configConnect to Cloud

If your browser frontend and backend API are separate services, follow the canonical Split Frontend & Backend setup path after the initial scaffold.

Operating Modes

DebugBundle supports two operating modes:

ModeDescriptionBest For
Local-onlyProcessing happens where the SDK writes files and the CLI runs. No DebugBundle Cloud.Solo development, air-gapped environments, controlled servers
ConnectedEvents can be sent to DebugBundle Cloud for team-wide visibility.Teams, CI/CD, production monitoring

See Local-Only Mode and Connect to Cloud for detailed guides.

Environment Delivery

In connected mode, you control which environments send events to the cloud and which stay local:

{
  "environments": {
    "local": { "delivery": "local-only" },
    "development": { "delivery": "local-only" },
    "staging": { "delivery": "local-only" },
    "production": { "delivery": "cloud-enabled" }
  }
}

This lets you keep local and pre-production investigation fully offline while sending production events to the cloud for team visibility. If you intentionally keep production local-only, run the CLI on the server or storage volume where .debugbundle/local/events/ is written.

Next Steps

On this page