Skip to content

Debugging workflow: ship launch.json and document the JS inspector #704

Description

@romain-pm

Part of EPIC #698.

The scaffolded docker-compose maps port 9229 for the GraalVM Chrome inspector, but nothing ships to use it: no .vscode/launch.json (the scaffold does ship extensions.json/settings.json), no debugging guide in the docs. On a stock instance nothing listens until the debugger is configured. The de facto workflow is console.* + docker compose logs -f jahia.

For comparison, Astro debugging is stock Node tooling: node --inspect, every IDE attaches, sourcemaps just work.

Proposal:

  1. Ship a launch.json in the scaffold with an attach configuration for the JS inspector (and document any engine property needed to enable the debug listener).
  2. Add a "Debugging" page to the getting-started docs: attach from VS Code / Chrome DevTools, breakpoints in .server.tsx, sourcemap expectations, and the log-tailing fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions