dev-debug-logs
Skill9 starsChanged 27 days agoMITView on GitHub
Use when debugging an app through `fusebase dev start`, or when you need to inspect browser logs, proxied API traffic, frontend dev server output, or backend output captured by the local CLI. Explains where logs are written and which file to inspect for each symptom. This is for LOCAL DEVELOPMENT only - for deployed apps, use the remote-logs skill instead.
In this repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/fusebase-flow-always.mdcCursor rule
- .cursor/rules/fusebase-flow-implementation.mdcCursor rule
- .cursor/rules/fusebase-flow-security.mdcCursor rule
- .cursor/rules/fusebase-flow-specs.mdcCursor rule
- .cursor/rules/fusebase-flow-validation.mdcCursor rule
- api-explorationSkill
- app-api-contract-testingSkill
- app-backendSkill
- app-business-docsSkill
- app-dev-practicesSkill
- app-e2e-testsSkill
- app-quality-patternsSkill
- app-routingSkill
- app-secretsSkill
- app-sidecarSkill
- app-ui-designSkill
- business-logic-guardianSkill
- client-vs-internalSkill
- code-reviewSkill
- comment-policySkill
- communicationSkill
- design-discovery-ideationSkill
- documentation-budgetSkill
- file-uploadSkill
- find-wasted-codeSkill
- find-wasted-effortSkill
- fusebase-cliSkill
- fusebase-dashboardsSkill
- fusebase-flow-health-checkSkill
- fusebase-gateSkill
- fusebase-portal-specific-appsSkill
- git-history-diagnosticSkill
- git-workflowSkill
- handling-authentication-errorsSkill
- handoffSkill
- implementation-planningSkill
- invite-with-passwordSkill
- lightweight-laneSkill
- liveness-disciplineSkill
- managed-integrationsSkill
- mcp-gate-debugSkill
- module-size-disciplineSkill
- north-starSkill
- phase-auditSkill
- product-apps-decompositionSkill
- product-docs-firstSkill
- product-ownerSkill
- project-onboardingSkill
- release-deploy-reportingSkill
- remote-logsSkill
- repo-onboarding-context-mapSkill
- requirements-specificationSkill
- role-disciplineSkill
- security-permissions-reviewSkill
- skill-authoringSkill
- smoke-testingSkill
- task-delegationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 8 are distinctive, and 17 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
17
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
When an app is run through:
- Distinctive: line 29
Use this skill when debugging the local app runtime.
- Distinctive: line 75
If the app defines a dedicated backend dev command, the CLI captures that process directly
- Very specific: line 76
If frontend and backend are started together from one dev.command using tools like concurrently, the CLI attempts to capture the backend …
- Very specific: line 98
Use requestId to correlate request and response records for one /api call
- Very specific: line 117
If the app uses a dedicated backend via app.backend.dev.command, this file contains the app dev server output directly
- Very specific: line 118
If frontend and backend are started together from one dev.command using tools like concurrently, the CLI attempts to exclude the detected …
- Very specific: line 126
If the browser error looks related to Vite, module resolution, HMR, or frontend dev proxying, check frontend-dev-server-logs.jsonl
- Very specific: line 127
If the browser error came from a failed /api call, inspect access-logs.jsonl and then check backend-logs.jsonl around the same time if a …
- Very specific: line 131
Start with browser-logs.jsonl to confirm the browser-visible symptom
- Very specific: line 132
Check access-logs.jsonl to correlate the request and response or a proxy error
- Very specific: line 133
Check frontend-dev-server-logs.jsonl if the frontend dev server may be failing to proxy or compile
- Distinctive: line 139
Check whether the backend printed startup errors, missing env vars, port conflicts, or stack traces
- Very specific: line 140
If the browser is only showing a generic fetch failure, confirm the browser-visible symptom in browser-logs.jsonl
- Distinctive: line 144
When a PostgreSQL-backed feature fails early, use this order before changing code:
- Very specific: line 148
check browser-logs.jsonl and access-logs.jsonl
- Very specific: line 150
call GET /v4/api/proxy/gate-service/v1/me with the current x-app-feature-token
- Distinctive: line 151
verify identity, scopes, and effective permissions
- Very specific: line 153
call listIsolatedStores for the current orgId
- Very specific: line 154
if the store is app-scoped, verify the exact clientId / source scope match
- Very specific: line 165
Use fusebase dev start; do not bypass the CLI with direct npm run dev if you need these logs
- Very specific: line 166
Read the latest session directory under the selected app directory's logs/dev-<timestamp>/ for the current run
- Very specific: line 167
Vite watch: Add server.watch.ignored: ['/logs/'] to the app's vite.config.ts so log writes don't trigger HMR reloads (see skill …
- Distinctive: line 168
Treat logs as debug artifacts, not as a source of truth for business data
- Distinctive: line 169
Do not assume secrets are fully removed.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dev Debug Logs
Important: This skill is for local development only. For logs from deployed app backends, use the remote-logs skill with
fusebase remote-logscommand.
When an app is run through:
fusebase dev start FEATURE_PATHthe CLI creates a per-session log directory inside the selected app directory:
<app-dir>/logs/dev-<timestamp>/with these files:
browser-logs.jsonlaccess-logs.jsonlbackend-logs.jsonlfrontend-dev-server-logs.jsonl
Use this skill when debugging the local app runtime. These logs are local development artifacts only.
Which Log File To Read
browser-logs.jsonl
Use for:
console.log/console.erroroutput from the browser- uncaught browser errors
- unhandled promise rejections
- navigation/lifecycle events from the app page
Important:
- It only works when the app is opened through the CLI proxy started by
fusebase dev start - The CLI injects a browser debug script into proxied HTML pages automatically
- Records are JSON Lines; each line is one event
Typical fields:
timestamptypelevelmessageargserrorurlpathname
backend-logs.jsonl
Use for:
- backend stdout/stderr captured during
fusebase dev start - runtime errors printed by an app backend
- startup messages like port binding, env/config issues, and stack traces
Typical fields:
timestampappIdline
Important:
- If the app defines a dedicated backend dev command, the CLI captures that process directly
- If frontend and backend are started together from one
dev.commandusing tools likeconcurrently, the CLI attempts to capture the backend lane into this file as well - This file is line-based output, not structured request logs
access-logs.jsonl
Use for:
- requests made to
/apithrough the local proxy - request/response headers
- request/response bodies for small JSON/text payloads
- proxy failures between the CLI and the app/frontend dev server
Typical record types:
requestresponseproxy-error
Important:
- Records include
requestId - The same request ID is also forwarded as
x-fusebase-dev-request-id - Use
requestIdto correlate request and response records for one/apicall - Headers and obvious secrets are redacted before writing
frontend-dev-server-logs.jsonl
Use for:
- frontend dev server stdout/stderr captured during
fusebase dev start - Vite startup errors, port-binding issues, and plugin/build diagnostics printed by the frontend dev server
- frontend-side dev proxy messages emitted by the app dev server
Typical fields:
timestampappIdline
Important:
- If the app uses a dedicated backend via
app.backend.dev.command, this file contains the app dev server output directly - If frontend and backend are started together from one
dev.commandusing tools likeconcurrently, the CLI attempts to exclude the detected backend lane from this file - This file is line-based output, not structured browser events
How To Use These Logs Together
For frontend/UI issues:
- Start with
browser-logs.jsonl - If the browser error looks related to Vite, module resolution, HMR, or frontend dev proxying, check
frontend-dev-server-logs.jsonl - If the browser error came from a failed
/apicall, inspectaccess-logs.jsonland then checkbackend-logs.jsonlaround the same time if a backend exists
For /api failures seen in the UI:
- Start with
browser-logs.jsonlto confirm the browser-visible symptom - Check
access-logs.jsonlto correlate the request and response or a proxy error - Check
frontend-dev-server-logs.jsonlif the frontend dev server may be failing to proxy or compile - Then inspect
backend-logs.jsonlfor the corresponding backend-side error or startup issue
For backend startup failures:
- Start with
backend-logs.jsonl - Check whether the backend printed startup errors, missing env vars, port conflicts, or stack traces
- If the browser is only showing a generic fetch failure, confirm the browser-visible symptom in
browser-logs.jsonl
Quick runbook: CORS vs NotFound for Gate/PostgreSQL flows
When a PostgreSQL-backed feature fails early, use this order before changing code:
- Preflight / OPTIONS
- confirm whether the browser is failing on CORS/preflight before the real request
- check
browser-logs.jsonlandaccess-logs.jsonl
- Gate
/metoken context- call
GET /v4/api/proxy/gate-service/v1/mewith the currentx-app-feature-token - verify identity, scopes, and effective permissions
- call
- Store discovery
- call
listIsolatedStoresfor the currentorgId - if the store is app-scoped, verify the exact
clientId/ source scope match
- call
- Only then change app code
Heuristic:
- preflight/CORS failure -> host/origin/config issue
- valid
/me+ empty store list -> org/source-scope/config issue - valid
/me+ visible store + failing data call -> then inspect feature code / SDK args
Rules
- Use
fusebase dev start; do not bypass the CLI with directnpm run devif you need these logs - Read the latest session directory under the selected app directory's
logs/dev-<timestamp>/for the current run - Vite watch: Add
server.watch.ignored: ['**/logs/**']to the app'svite.config.tsso log writes don't trigger HMR reloads (see skill app-dev-practices) - Treat logs as debug artifacts, not as a source of truth for business data
- Do not assume secrets are fully removed; redaction is best-effort
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

