Debugging
24 guides tagged “Debugging”.
- 502 vs 503 vs 504: What's the Difference? 502 is a bad upstream response, 503 means the service cannot serve now, and 504 is a proxy timeout. Each points somewhere different.
- DNS Propagation: Why Your Domain Still Points Elsewhere DNS changes apply immediately on the authoritative server. What looks like propagation is resolvers serving cached answers until the TTL expires.
- What Is an SSL/TLS Handshake (and Why Does It Fail)? TLS agrees on a version and cipher, verifies the certificate, and derives keys. Most failures are a name, a chain, or a protocol mismatch.
- What Is Structured Logging? Structured logging emits machine-readable key-value events instead of free text. Learn why it matters, how to adopt it, and what AI logs get wrong.
- What Is a Memory Leak (and Why Does Your App Get Slower the Longer It Runs)? A memory leak is memory your app never releases. Learn why AI-generated code leaks it, how to find the cause, and how to fix it in Python and Node.js.
- Why Does My App Work Locally but Not in Production? It works locally because your machine supplies what production lacks: env vars, a real database, permissive CORS. A checklist of every divergence.
- How to Recover When AI Makes a Mistake in Your Code A calm incident playbook for AI coding mistakes: contain the change, preserve evidence, roll back safely, verify the fix, and prevent a repeat.
- How to Recover When an AI Build Gets Messy When repeated AI prompts stop producing progress, reset the project with evidence, a smaller problem, and a deliberate debugging loop.
- Debug and Refactor the Code You Didn't Write An intermediate journey: reproduce a bug, bisect to the breaking change, fix it with a regression test, and refactor AI-generated code without breaking behaviour.
- The 12 Database Mistakes That Show Up in AI-Generated Apps Missing indexes, N+1 queries, float money, naive timestamps, unpooled connections, and destructive migrations — the twelve database mistakes generated code ships with, and the fix for each.
- Working With AI Coding Agents: The Complete Workflow From Prompt to Production Choosing an agent, writing specs it can follow, reviewing its diffs, and debugging what you didn't write. Every guide in the AI coding workflow, in one place. 30+ linked guides.
- How to Debug an AI-Generated API That Returns Wrong Data Your AI built an API endpoint. It returns 200 OK with wrong data. Here's how to trace request → handler → response when you didn't write the handler — isolate the broken function, instrument it, and get a targeted fix.
- How to Debug AI-Generated Code: A Complete System for When You Don't Understand What the AI Wrote Your AI wrote 300 lines and you don't know what any of it does — and now it's broken. Here's a repeatable debugging system: isolate, bisect, instrument, explain. No prior understanding required.
- How to Debug AI-Generated Database Queries That Return Wrong Results Your AI wrote a database query. It runs, but returns the wrong data — missing rows, wrong counts, stale results. Here's how to extract the raw SQL, test it directly, and fix it without the AI rewriting your whole data layer.
- How to Find Which AI-Generated Change Broke Your App Using Git Bisect Your AI made 15 commits yesterday and now something's broken. git bisect pinpoints the exact commit in minutes without reading any code — just a yes/no test. Step-by-step for AI builders.
- Why Is My Website Suddenly Slow? A diagnostic order for sudden slowness: is it the network, the application, the database, or a resource that ran out — and how to tell in minutes.
- How to Debug a Crash-Looping Container A container that restarts every few seconds is crash-looping. Learn the systematic way to find why: check status, logs, entrypoint, and startup errors.
- How to Read an EXPLAIN Plan A step-by-step reading of a query plan: what each node does, which numbers matter, and how to spot the scan or the estimate that explains a slow query.
- Why Does My Database Connection Time Out? Connection timeouts come from four places: the pool is exhausted, the database's connection limit is reached, the network blocks the path, or the server is too busy to accept.
- Cloudflare 525 and 526: How to Fix an SSL Handshake Failure 525 means Cloudflare could not complete a TLS handshake with your origin; 526 means the origin's certificate was rejected. How to tell them apart and fix each.
- What Is a Database Deadlock (and How Do You Fix It)? A deadlock is two transactions each holding a lock the other needs. The database detects it and kills one. Here is why generated code creates them and how to make them stop.
- Why Does My Build Pass Locally but Fail in CI? The nine differences between your laptop and a CI runner that break builds: lockfiles, runtimes, case sensitivity, environment, caching, and hidden state.
- Why Does My Container Keep Restarting Every 30 Seconds? A restart loop has three usual causes: the process exits, a health check fails, or the runtime kills it. Read the exit code to tell them apart.
- What Is a 504 Gateway Timeout (and How Do You Fix It)? A 504 means a proxy waited for an upstream server that did not answer in time. The fix is usually to make the slow operation faster, not to raise the timeout.