Since a bug is "code with unintended action", you need to know:
The trick to effective debugging is narrowing the focus of attention.
That is, employ a search strategy that enables you to zoom in on the bug.