Debugging 5 Real-World Bugs: A Practical Walkthrough That Doesn't Include Console.log!
Source: Dev.to
Introduction
As a front‑end developer I’m constantly battling two kinds of bugs:
- Runtime‑visible bugs – they pop up in the console and break the UI.
- Silent bugs – they don’t throw errors, yet the app behaves incorrectly.
Both are a nightmare. That’s why I teamed up with the theORQL team to try their AI‑powered runtime debugger. After a great chat with the founder (more info here), I recorded a step‑by‑step video that shows how the tool works in practice.
In the era of AI, how do you debug?
Watch the full video guide (with tips from the founder) on YouTube: [Practical Video Guide – Debugging with theORQL]
What theORQL Does
- Runs inside Chrome – no need to switch tabs.
- Syncs fixes back to VS Code – one‑click diff application.
- Correlates errors – network failures, console warnings, DOM anomalies, and stack traces are all linked together.
Below are the five bugs I explored in a weather‑app demo. Each section contains:
- What the bug looks like
- Why it breaks the app
- How theORQL identifies and fixes it
- A short video clip (click the thumbnail to see the exact error)
1️⃣ Snowflake Texture Not Loading
💡 Note: Click the video to see the exact error.
- Symptom: The snow page should display falling snowflakes, but it’s empty.
- Root cause: A 404 error for the snowflake texture (
snowflake.png) shown in the Network tab; console warns about a failedTextureLoader.load. - theORQL fix:
- Correlates the empty render with the failed request.
- Highlights the line
TextureLoader.load('assets/snowflake.src'). - Suggests correcting the URL to the proper path.
- Syncs the change to VS Code, reloads, and the snow appears.
2️⃣ CalendarPanel Runtime Render Error
💡 Note: Click the video to see the exact error.
- Symptom: Clicking any day triggers a React error; the Next.js red overlay appears.
- Root cause:
null/undefineddate value used informatYYYYMMDD, causinggetFullYearto be called onundefined. - theORQL fix:
- Captures the exception and stack trace.
- Points to the exact line in
formatYYYYMMDD. - Recommends adding a null‑check before formatting.
- Apply the diff in VS Code → calendar works without crashing.
3️⃣ Weather Service Unauthorized Requests
💡 Note: Click the video to see the exact error.
- Symptom: Every API request fails with a 401/403 error; the weather panel shows an error state.
- Root cause: Missing authentication header (e.g.,
Authorization: Bearer) in the fetch call. - theORQL fix:
- Traces failed requests and surfaces the missing header.
- Highlights the fetch call in
weatherService.js. - Suggests inserting the required header.
- After syncing, requests succeed and city switching works.
4️⃣ Calendar Day Numbers Invisible
💡 Note: Click the video to see the exact error.
- Symptom: Calendar UI renders, but day numbers are invisible (clicking still selects a date). No console errors.
- Root cause: Computed styles hide the text (
color: transparentoropacity: 0) via a stray CSS class. - theORQL fix:
- Captures a DOM snapshot and shows that the text exists but is hidden.
- Points to the offending CSS rule (
.day-label { color: transparent; }). - Proposes removing the rule or changing the color to a visible one.
- Apply the diff → dates become visible.
5️⃣ Planner Modal “Add” Button Does Nothing
💡 Note: Click the video to see the exact error.
- Symptom: Typing a task works, but clicking Add (or pressing Enter) adds nothing. No console errors.
- Root cause: The component’s internal
draftstate is never updated because theonChangebinding is broken; the handler sees an empty string. - theORQL fix:
- Traces the click event to the handler, observes the state/value mismatch.
- Highlights the broken binding (
value={draft}without properonChange). - Suggests restoring the two‑way binding.
- Sync the change → tasks are added correctly.
Takeaways
These five bugs—asset failures, runtime exceptions, auth issues, hidden UI, and silent logic errors—represent common runtime problems that often lack clear console output.
theORQL helped by:
- Capturing evidence directly from Chrome (network, console, DOM, events).
- Providing an AI‑generated, human‑readable explanation.
- Offering a one‑click diff that syncs to VS Code.
The result? Faster, more focused debugging with less context‑switching.
🎯 Want to Try it Yourself?
- Install theORQL’s VS Code extension
- Open Chrome DevTools, run the debugger, and let the AI do the heavy lifting.
If you find it useful, share your own bug‑stories with the community!
Happy debugging! 🤓
Note: All video links above are placeholders; replace them with the actual YouTube URLs.