A reliable frontend debugging workflow
Replace guessing with a repeatable process: reproduce, narrow the scope, and use console and network evidence to find the root cause.

Start with a stable reproduction
If you cannot repeat the failure with clear steps, the diagnosis is not reliable. Record the input, browser, interaction order, and exact error message.
Narrow the scope methodically
- Inspect the first console error, not the last message in the cascade.
- Compare status, payload, and timing in the Network panel.
- Test the suspected change in the smallest isolated example.
Temporary structured logging
console.debug("project:load", {
projectId,
fileCount: Object.keys(files).length,
selectedFile,
});
Removing the symptom is not enough; a good fix explains why it happened and what prevents it from returning.



