Service · Software Debugging
Find the defect.Fix the cause.
Production bugs are rarely “a small frontend issue”. We trace them across the interface, the API, the database and the infrastructure — then prove the fix with tests.
Discovery first. Scope and architecture agreed before anything is built.
When a bug is visible but the cause is not
A user reports that a form fails, a page is slow, or a number in a dashboard does not match the source system. The symptom is easy to describe. The cause might be a race in the client, a wrong query, a timeout, a bad deploy, or data that only exists in production.
Teams lose days swapping guesses in chat. Debugging as a service is the opposite: reproduce the failure, narrow the layer, change the smallest thing that removes the cause, and leave a test so it does not return.
Defects we are usually asked to untangle.
Most production incidents fall into a small set of shapes. Naming the shape early stops a frontend investigation when the database is the real source, and the reverse.
- 01
Works locally, fails live
Environment variables, data volume, time zones, feature flags or a build that does not match the repository.
- 02
Intermittent failures
Races, retries, cache expiry and requests that depend on order. These need a trace, not another reload.
- 03
Wrong business result
The screen loads, but the number, status or permission is incorrect. Usually a query, a rule or stale data.
- 04
Slow under load
A page that is fine for one user and unusable for many. Measure the query, the payload and the waterfall before changing code.
- 05
Integration drift
A third-party API changed a field, an auth token expired, or two systems disagree about an identifier.
- 06
Regressions after release
A fix in one flow broke another. The missing piece is a test around the original behaviour, not a larger rewrite.
Our debugging process.
The order matters. A patch written before the failure is reproducible tends to hide the bug or move it.
- 01
Reproduce
Capture steps, user role, data and environment until the failure happens on demand, or the logs show why it cannot.
- 02
Isolate the layer
Decide whether the defect is in the browser, the server, the database, a dependency or the data itself.
- 03
Form a hypothesis
State what should be true and which observation would disprove it. Change one thing at a time.
- 04
Fix the cause
Prefer the smallest change that removes the cause. A rewrite is a separate project.
- 05
Test the fix
Add a regression test or a recorded case. Re-run the original report and the neighbouring flows.
- 06
Watch it in production
Confirm the error rate or the user report actually stops. Leave a note the next engineer can read.
Frontend and React debugging.
JavaScript debugging in a modern interface is mostly about state and timing. React debugging adds rendering: a value that is correct in the network tab and wrong on screen, a hydration mismatch, or an effect that runs twice and double-submits.
We inspect the component tree, the network waterfall and the browser console together. Source maps are required; debugging a minified bundle without them wastes the engagement. Typical fixes are incorrect derived state, missing dependencies, optimistic updates that never reconcile, and event handlers attached to the wrong element.
Backend and Node.js debugging.
Backend debugging starts from the request that failed, not from a file someone suspects. We follow the handler, the service function and the query, with logs that include a request id.
Node.js defects we see often: unhandled rejections that crash a worker, shared mutable state across requests, timeouts that are shorter than a downstream call, and error handling that swallows the status code the client needed. The fix includes the log line that would have made the next incident obvious.
API debugging.
API debugging treats the contract as the specification. We compare what the client sent, what the server validated, and what the downstream system returned — status, body and headers.
Common causes are auth scopes, pagination that the client ignores, a field renamed without a version bump, and retries that create duplicate records. We document the corrected contract so both sides stop guessing.
Database debugging.
When the interface and the API look correct, the data often is not. Database debugging covers queries that return the wrong rows, transactions that lock under concurrent edits, migrations that did not run in production, and indexes that the planner ignores.
We read the query plan, the actual rows and the application’s assumptions side by side. A “bug” is sometimes a missing constraint that allowed impossible data in. The fix is then both the data repair and the constraint.
Performance debugging.
Performance work without a measurement is guessing. We record where time goes: server response, database, third-party calls, JavaScript execution and image weight.
The usual wins are an N+1 query, an unbounded list, a waterfall of client requests, and a cache that never hits. We change the largest contributor first and re-measure. Broader performance engineering is covered in our notes on improving web application performance.
Security-related debugging.
Some defects are security defects: an endpoint that trusts a client-supplied role, an ID that lets one account read another’s record, a token logged in plaintext, or an error message that leaks a stack and a connection string.
We treat these as bugs with a narrower disclosure path. The fix is authorisation on the server, least-privilege queries and logs that omit secrets. We do not publish exploit detail in the project notes.
Testing after fixes.
A debugging engagement is unfinished if the only proof is “it worked when I tried it”. We add a regression test where the stack allows it, re-check the reported flow and the closest adjacent flows, and agree what “fixed” means with the person who reported it.
If the same area has no tests at all, we say so and can continue under software testing rather than pretending one patch created a safety net.
When a debugging team is the right call.
Debugging is a poor fit when the real request is a new feature, a redesign, or a system that has no specification of correct behaviour. In those cases we start with consulting or a scoped build instead.
- The defect is in production and the team cannot reproduce it.
- Several layers might be involved and nobody owns all of them.
- A release is blocked and the cost of waiting exceeds the cost of a focused investigation.
- The same class of bug has returned after previous patches.
- You need the cause written down, not only the line that changed.
Mainstream, maintainable, yours.
- React
- Next.js
- JavaScript
- TypeScript
- Node.js
- PostgreSQL
- Prisma
- Browser devtools
- Query plans
- Structured logs
Where this service applies.
- IndustrySaaS & Technology CompaniesBuild the product, add AI features, fix the architecture or extend the team — with engineers who have shipped SaaS products of their own.Explore
- IndustryHealthcarePatient discovery, booking, consultations, verification and admin — engineered into platforms clinics and patients can trust.Explore
- IndustryE-commerceStorefront, admin, content and media on one data model — plus automation for the daily operational work.Explore
- IndustryEnterprise & Internal OperationsInternal platforms, approvals, document workflows and reporting — connected to the systems your organisation already runs.Explore
Questions we are asked.
Do you only debug JavaScript applications?
Most of our production debugging is in JavaScript and TypeScript stacks — React, Next.js and Node.js — plus PostgreSQL. If the failure is in a system we do not know, we say so in the first conversation.
Can you fix a bug without a full rewrite?
Yes. The point of debugging is to remove the cause with the smallest sound change. A rewrite is a different engagement and we will not sell one to avoid an investigation.
How do you handle production access?
Read access to logs, error reports and a staging copy of data is usually enough. We agree access, retention and what may be copied before we start. Secrets are not pasted into chat.
What is the difference between debugging and testing?
Debugging finds and removes a known failure. Testing builds the checks that catch the next one. Many engagements need both; they are separate services so the scope stays clear.
Next steps
Have a defect you cannot pin down?
Send the report, the environment and what you have already tried. We will tell you whether we can reproduce it.
Every inquiry is carefully reviewed by our team.
Working with companies across Europe, the Gulf, North America and Asia-Pacific — remotely, in English, in overlapping hours.
