debug a bug

Translations
отлаживать ошибку
The developer spent hours trying to debug a bug in the code.
Разработчик потратил часы, пытаясь отладить ошибку в коде.
Definitions
To identify and fix an error or flaw in a computer program or system that is causing it to function incorrectly.