debug (bug + de-; reversal_removal)
To search for and eliminate malfunctioning elements or errors in something, especially a computer program or machinery