Debug

: Confirm that the bug exists and can be triggered consistently. Isolate the cause

Another powerful psychological tool is Rubber Duck Debugging. This involves explaining your code, line by line, to an inanimate object (like a rubber duck). The act of translating code into spoken language often forces the brain to notice logical gaps that were overlooked during silent typing. Categories of Bugs : Confirm that the bug exists and can

Assertions are your sentinels. They check invariants. If something is supposed to be true, assert it. line by line

A standard approach to debugging typically involves the following steps: Reproduce the issue : Confirm that the bug exists and can