Architecture
repo · 7 componentsServices, routes and stores inferred from imports and decorators.
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
L15head = Node(10)29 seconds: a failing test, the recorded values that explain it, and AI agents drafting a fix you approve.
Traceback (most recent call last):File "app.py", line 88, in <module>main()File "app.py", line 81, in mainreport = process_user(load_user(uid))File "services/users.py", line 47, in process_userscore = calculate_score(user)File "services/scoring.py", line 72, in calculate_scoreactivity = 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.
user.metrics was already None when load_user() returned — two calls before the crash.
Whybug reads imports, routes, calls and queries across every file, then draws the system they form. Pick a directory to see where it lives.
87 files · 412 functions · 6 components detected from imports and route decorators.
Start with the whole repository. Zoom until you are looking at the one value that broke it. Every level is linked to the next.
Every line, every assignment, every pointer is recorded. Scrub backwards from the crash to the step where the state first went wrong.
Variables at step 1
L2 previous, current = None, head
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
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.0tenure = normalize(user.tenure_days, ceiling=365)
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.
Repositories
Nothing visualized yet.
Edit the code on the left, then run it.
Pricing
Free
$0forever
Pro monthly
$4.99per user / month
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.
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.