Test, Debugging & Instrumentation

debugging

Debugging is the craft of finding out why a circuit that should work does not, and fixing it — and it is the skill that separates someone who can copy a schematic from someone who can build working hardware. The beginner's instinct is to start swapping parts at random and hope. The expert does almost the opposite: they treat the dead circuit like a patient, gather evidence, and reason from symptom to cause. Done well, debugging is calm, systematic detective work, not frantic part-roulette.

A handful of moves do most of the work. Check power and ground first — astonishingly often the supply rail is the wrong voltage, missing, or ground is not connected, and nothing downstream can possibly work until that is right. Divide and conquer: instead of staring at the whole board, split it in half, test the midpoint, and decide which half holds the fault, then split again — a few halvings find a problem among dozens of parts. Follow the signal stage by stage: inject a known input with a function generator and walk an oscilloscope from input toward output until the signal vanishes or distorts; the fault is right there. Compare against the schematic and against a simulation: where the real board disagrees with what the design predicts is your suspect. And form a hypothesis, then test it — change one thing at a time so you actually learn from each result.

Why it matters: real boards fail in ways no schematic shows — a cold solder joint, a part in backwards, a wrong value, an unintended oscillation, a brownout under load. The honest discipline is to change only one variable per experiment, write down what you tried, and resist the urge to shotgun-replace parts, which often adds new faults while hiding the old one. And keep the right humility: sometimes the bug is your measurement (a loading probe, a bad ground clip, the wrong scope setting) rather than the circuit. Suspect your instruments too.

An audio amp is silent. Instead of swapping the chip, you check power first: the 12 V rail reads only 4 V — already a clue. You divide and conquer and find a 100 ohm resistor that should be 1 ohm (wrong value) starving the supply. One measurement, one hypothesis, one fix — no parts thrown at the wall.

Power and ground first, then divide and conquer, then follow the signal — one change at a time.

Resist randomly swapping parts: it rarely teaches you the cause and often introduces new faults. Change one thing at a time, and remember the bug is sometimes your measurement (a loading probe, a floating ground) rather than the circuit.

Also called
troubleshootingfault-finding除錯故障排除