Debugging & Bug Hunting
The bug nobody else can find
Some bugs survive months of effort — the one that only happens at month end, the total that is off by a few rupees, the job that fails silently once a week. Finding those is a specific skill: read the system, form a theory, prove it with evidence. It's the part of this work I enjoy most.
What you end up with
- The actual root cause, proven — not a guess and a patch
- Intermittent failures made reproducible so they can be fixed properly
- Silent failures surfaced by monitoring instead of found by luck
- A written explanation your team can learn from
- Fixes that hold, because the real cause was addressed
Signs you need this
If two or three of these sound familiar, it is probably worth a conversation.
- A bug has survived weeks of your team's effort
- Something fails intermittently and nobody can reproduce it
- Two systems disagree by a small amount and nobody knows why
- A scheduled job fails silently and you find out days later
- Something got slow and nobody can say what changed
What is actually delivered
Not a statement of intent — the concrete artefacts and outcomes you receive.
Root cause investigation
Logs, database state, network traffic and code read together until the failure is explained and reproducible. No fix goes in until the cause is proven.
Data mismatch forensics
When two systems disagree, tracing every step of the flow to find exactly where the numbers diverge and why — including the records that quietly never arrived.
Integration debugging
API traffic inspected end to end to find what is really being sent and returned, rather than what the documentation claims.
Performance investigation
Slow queries, missing indexes, and the loops quietly making a thousand database calls where one would do — found by measurement, not by guessing.
A written post-mortem
What broke, why, how it was fixed, and what would stop it happening again. So the knowledge stays with your team, not with me.
How the engagement runs
- 01
Reproduce
Make the bug happen on demand. Half the work, and the half most people skip.
- 02
Narrow
Halve the search space repeatedly with evidence until the cause has nowhere to hide.
- 03
Prove
Confirm the mechanism before changing anything, so the fix is not a coincidence.
- 04
Prevent
Add the test, the check or the alert that catches it next time.
Debugging & Bug Hunting: common questions
Enough to observe: logs, a read replica or database access, and ideally a staging environment where the failure can be reproduced. Read access is usually plenty — the goal is to understand the system, not to change it until the cause is proven.
You get everything I found and a written assessment at the end of the time-box, including what has been ruled out. That has real value on its own, because it stops your team re-searching the same ground. And you have not signed an open-ended engagement.
Yes, though the fix is usually the small part. Once the cause is proven the change is often a few lines. What matters more is adding the test or alert that catches it next time, which is included.
Usually because a fresh pair of eyes has no attachment to the theory everyone has been chasing. Long-running bugs tend to survive because an early assumption was wrong and never revisited. I start by questioning the assumptions, not by reading the code everyone has already read ten times.
Yes — that is the normal case, and it is a lot like reverse engineering. The database, the logs and the running system will tell you what is happening if you read them carefully enough. Access and a reproducible example matter far more than prior familiarity.
A fixed-fee time-boxed investigation. You get everything I have found and a written assessment at the end of the box, whether or not the cause was pinned down. That caps your risk and keeps me honest about progress.
Debugging & Bug Hunting in your industry
The problems look different in each of these, so the way I approach them differs too.
Services that usually go with this
ERP Implementation & Consulting
From selection to go-live, without the six-figure disaster
Business Process Automation
Remove the manual work that quietly eats your margin
Accounting, Reconciliation & Revenue Assurance
Stop losing money you never knew you were losing
Want a straight answer on your situation?
Thirty minutes, no pitch. I'll tell you what I would do and what it costs.