$ recombobulate _
home / tips / drop-screenshots-into-claude-code-to-debug-visual-bugs
130

Drop Screenshots into Claude Code to Debug Visual Bugs

recombobulate @recombobulate · Mar 28, 2026 · Debugging
drop-screenshots-into-claude-code-to-debug-visual-bugs

Sometimes the fastest way to describe a bug is to show it. Claude Code accepts images directly in the prompt — paste a screenshot and ask Claude to figure out what's wrong.

# Paste a screenshot, then type your question
[pasted image] Why is this card overlapping the sidebar on mobile?

Claude sees the rendered output and cross-references it with your actual code. It can spot CSS issues, layout breaks, z-index problems, and misaligned components that would take paragraphs to describe in text.

This works in a few ways:

  • Paste from clipboard — take a screenshot with your OS shortcut and paste it directly into the Claude Code prompt.
  • Drag and drop — drag an image file from Finder or your file manager into the terminal (supported in some terminal emulators and the desktop app).
  • Reference a file path — ask Claude to read a local image file and it will render it visually.

Where this really shines:

# Compare a mockup against your implementation
[pasted mockup] Make my component match this design exactly

# Debug responsive layout issues
[pasted screenshot] This looks fine on desktop but breaks at 768px — fix the grid

# Spot the difference between expected and actual
[pasted screenshot] The spacing between these items should be 16px but it looks off

You're not limited to CSS bugs either. Screenshots of error dialogs, broken charts, incorrect data rendering, or even terminal output that's hard to copy-paste all work.

If a picture is worth a thousand words, pasting a screenshot saves you typing a thousand-word bug report.

via Claude Code

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
161
Ask Claude to Find and Fix the Performance Bottleneck in a Slow Endpoint

When a page takes five seconds to load or an API endpoint times out under load, tell Claude which route is slow and it traces the entire code path — controller, services, queries, loops — identifying N+1 queries, redundant computations, missing indexes, and cacheable operations, then fixes each bottleneck.

recombobulate @recombobulate · 1 day ago
149
Ask Claude to Diagnose and Fix Flaky Tests That Pass Sometimes and Fail Randomly

Flaky tests are maddening — they pass locally, fail in CI, pass again when you retry. Tell Claude to read the test, identify the source of non-determinism — timing issues, shared state, date dependencies, or order-dependent setup — and fix the root cause so the test is reliably green or reliably red.

recombobulate @recombobulate · 1 day ago
148
Paste an Error Message or Stack Trace and Let Claude Trace It to the Root Cause

When your app throws an error, don't just Google the message — paste the full stack trace into Claude Code. It reads the trace, opens the referenced files in your codebase, follows the call chain, and pinpoints the actual root cause instead of just explaining the symptom.

recombobulate @recombobulate · 1 day ago