The visual debugging playbook for AI coding
I once typed a full paragraph describing a misaligned dropdown before realizing Claude could just look at it. I build Settl, an expense-splitting app, solo with Claude, and screenshots turned my slowest debugging category, "it looks wrong", into my fastest. Claude reads images, so stop transcribing pixels by hand.
Why pixels beat paragraphs
- A screenshot carries details your description drops: the 3px offset, the truncated label, the second error hiding behind the modal, the font that quietly fell back to Times New Roman.
- You do not know which detail matters. That is exactly why you are debugging. Describing the bug filters the evidence through the same blind spot that let it ship.
- A paragraph is your interpretation of the bug. A screenshot is the raw data.
The whole playbook in one line: paste the image, add one sentence of intent, let the model do the looking.
What to screenshot
- Broken layouts: overlapping elements, weird spacing, off-center anything.
- Error dialogs and toasts, especially the ones that vanish after two seconds.
- Browser devtools: the console with the error expanded, the network tab with the failing request selected, the elements panel showing computed styles.
- Native app screens where the error text cannot be copied out.
- Rendered output that is wrong-shaped in ways numbers will not show: charts, canvases, PDFs, emails your app generates.
- A design mock next to your implementation, when "match the mock" is the task.
One exception: if the content is selectable text, paste it as text. Terminal output, log files, and stack traces are cheaper, exact, and searchable as text. Screenshots are for rendered output.
Crop or full screen?
Crop when the bug is local: a broken button, a misrendered card, a single bad row. Crop to the smallest region that still contains the bug plus one landmark that anchors it, like a header or a section label. A 40px sliver of broken border with no context invites guessing.
Go full screen when the bug is relational: the sidebar overlapping the content, the footer floating mid-page, spacing that only looks wrong next to its neighbors. Layout bugs are about relationships, and cropping deletes the relationships.
When in doubt, send the full window. Models handle "find the problem in this busy screenshot" fine. What they cannot do is see the part you cropped out.
Annotate when there is any ambiguity
A red box or an arrow costs five seconds in any screenshot tool and removes an entire round of "which button do you mean?" Annotate when:
- the screen has repeated elements: which row, which card, which of the six inputs
- the bug is subtle: draw the box right around the 2px misalignment
- you are pointing at an absence: "the delete icon should be HERE"
Skip annotation when the bug is the loudest thing on screen. An error dialog needs no arrow.
The formula: screenshot + one sentence of intent
The screenshot says what is. Your sentence says what should be. Both halves matter.
- "This dropdown should open below the button, not above it." + screenshot
- "The totals row should be bold and right-aligned like the header row." + screenshot
- "Second card from the left: why is the image stretched?" + screenshot
Skip the sentence and you get a generic critique of the whole screen. Skip the screenshot and you are back to writing paragraphs. Together they are a complete bug report in under fifteen seconds.
Video-frame debugging
Flicker, jank, animation bugs, and layout shift only exist in motion, but you can still hand them to a model that reads stills:
- Screen-record the behavior: QuickTime, OBS, or just your phone pointed at the screen.
- Extract the frames around the bad moment:
ffmpeg -ss 2.5 -i recording.mov -frames:v 5 frame-%d.png - Paste two or three frames: before, during, after.
- Say what should happen between them: "frame 2 should not exist, the modal jumps from closed to open with a white flash in between."
A layout that flashes for 100ms is invisible in devtools and obvious in frame 3 of 5.
Design reviews, not just bugs
The same channel works before anything is broken. Paste a screenshot of a working screen and ask "what looks off here?" You get concrete notes: inconsistent padding, two near-identical grays pretending to be a hierarchy, a primary button that reads as disabled.
Then paste two screens from your app side by side and ask what is inconsistent between them. It is a free design pass, and it catches the things you stopped seeing weeks ago.
Try it right now
Take one screenshot of any screen in your app, attach it, and paste this:
I am attaching a screenshot of a screen from my app. Do two passes:
1. Read it back: describe what you see, so I can confirm nothing important
got lost in the image.
2. Critique it: list everything that looks off (alignment, spacing,
contrast, truncation, inconsistent styles), ordered by how much it
hurts, with the likely CSS or layout cause for each item.