Skip to content

See your code execute.Understand exactly where it breaks.

Whybug turns source code and entire repositories into interactive execution maps, making architecture, request paths, runtime state, and failures visually understandable.

No setup required · Your code stays private

/linked_list.py
running
execL15head = Node(10)
10 · Nodevalue10next20 · Nodevalue20nextNoneNonehead
1Error2345

Watch Whybug find and fix a bug

29 seconds: a failing test, the recorded values that explain it, and AI agents drafting a fix you approve.

Open the video on its own page →

Stop reading stack traces.See the failure.

Traditional debuggingstderr
Traceback (most recent call last):
File "app.py", line 88, in <module>
main()
File "app.py", line 81, in main
report = process_user(load_user(uid))
File "services/users.py", line 47, in process_user
score = calculate_score(user)
File "services/scoring.py", line 72, in calculate_score
activity = normalize(user.metrics.value)
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'value'

Four frames, two files, no values. You know where it stopped — not what the program was holding when it did.

Whybugexecution path · run 8f2c
  1. main()app.py:81
    uid = 4182
  2. load_user()repositories/users.py:22
    User(id=4182, metrics=None)
  3. process_user()services/users.py:47
    user.plan = "team"
  4. calculate_score()services/scoring.py:72
    user.metrics = None

    user.metrics was already None when load_user() returned — two calls before the crash.

From repository to architecture map.

Whybug reads imports, routes, calls and queries across every file, then draws the system they form. Pick a directory to see where it lives.

halcyon-labs/backendmain
  • src/
React Frontend
src/frontend · 38 components
API Client
src/frontend/lib/api.ts
FastAPI Backend
src/api · 14 routes
AuthService
4 functions
UserService
6 functions
User · Session
src/models
PostgreSQL
src/database · 3 tables

Google Mapsfor your codebase.

Start with the whole repository. Zoom until you are looking at the one value that broke it. Every level is linked to the next.

247 files
1 : 2,400
frontend/
api/
services/
models/
database/
tests/
scripts/

Replay your program.

Every line, every assignment, every pointer is recorded. Scrub backwards from the crash to the step where the state first went wrong.

Space
Play / pause
←→
Step backward / forward
E
Jump to error
None
previous
10
current
20
None
1Error234
1def reverse(head):
2 previous, current = None, head
3 while current:
4 next = current.next
5 log.debug("next=%s", next.value)
6 current.next = previous
7 previous, current = current, next
8 return previous

Variables at step 1

current
Node(10)
previous
None
next
—

L2 previous, current = None, head

Know what failed — and why.

What the trace recorded, what Whybug infers from it, and what to change are kept apart. You always know which part is evidence.

Execution path

  1. main()✓
  2. load_user()✓
  3. process_user()✓
  4. calculate_score()✕

test_calculate_score_without_metrics
failed in 5ms

Observed

recorded in trace

user.metrics = None

Set when load_user() returned at step 41. Read as .value at step 58, scoring.py:10.

Likely cause

inferred

The function expects user.metrics to contain an object. Users created before the metrics backfill have none.

Suggested fix

suggestion

Validate metrics before accessing .value.

def calculate_score(user: User) -> float:
- activity = normalize(user.metrics.value)
+ metrics = user.metrics
+ activity = normalize(metrics.value) if metrics else 0.0
tenure = normalize(user.tenure_days, ceiling=365)

One trace.Six ways to read it.

Architecture

repo · 7 components
WebAPIServicePostgresFrontend → API → Service → DB

Services, routes and stores inferred from imports and decorators.

Call Graph

main.py · 4 calls
main()fetch()validate()save()×3×3×0

Who calls what, with call counts from the recorded run.

Control Flow

login() · 3 branches
STARTuser?noyes401verify()

Branches the run took are lit. The ones it skipped stay grey.

Data Structures

linked_list.py · step 12
HEAD102030Nonecurrent

Lists, trees, graphs and arrays drawn from the live heap.

Request Paths

rag/pipeline.py
InputAPIEmbeddingVector DBLLMdim 3072 ≠ 1536

Follow a request from the endpoint through its handlers to the services it uses.

Runtime Trace

run 8f2c · 229ms
Step 0100.000main
Step 0200.021load_config
Step 0300.084start_server
Step 0400.229ERROR AttributeError

A timestamped event log you can scrub, step by step.

Connect a repo.Understand it in minutes.

Install the GitHub App on the repositories you choose. Whybug fetches the commit, analyses it in an isolated sandbox, and re-runs on every push.

  • — Read-only access, per repository
  • — Branch and commit picker, cached by SHA
  • — pytest runs traced on failure
Connect GitHub

Repositories

branch: main

Built for the moment you ask “what is this doing?”

  • Debug failing algorithms
  • Understand unfamiliar repositories
  • Visualize architecture
  • Trace API requests
  • Investigate failing tests
  • Learn data structures
  • Review generated AI code
  • Onboard developers faster

Try it on broken code.

linked_list.py
Visualization

Nothing visualized yet.

Edit the code on the left, then run it.

Pricing

One plan when you need more.

Free

$0forever

  • 2-day Pro trial on sign-up, with lighter daily limits
  • Then 5 sandboxed snippet runs per day
  • 2 repository analyses per day
  • Architecture, call graph and request-path maps
  • AI explanations with Claude Haiku or GPT-5 mini
  • Public GitHub repositories
Start free

Pro monthly

$4.99per user / month

  • 100 snippet runs per day
  • 20 repository analyses per day
  • 25 AI answers a day from the best models: Claude Opus and GPT-5
  • Tests run in the sandbox, every failure traced
  • Private GitHub repositories
Upgrade to Pro

Billed in USD via Stripe or PayPal. Cancel any time; Pro stays active until the end of the paid month.

Buying for a team or company? For several seats, custom limits or invoicing, email enterprise@whybug.dev.

Your code already
has a story.Whybug makes it visible.

Free plan for everyone. New accounts get 2 days of Pro free. Pro is ₹499 per user per month in India and $4.99 per user per month everywhere else — cancel any time.