Diagnostic Routine

An electronic-computer routine designed to locate a malfunction in the computer, a mistake in coding, or both.

A routine used to locate a malfunction in a computer, or to aid in locating mistakes in a computer program. Thus, in general, any routine specifically designed to aid in debugging or troubleshooting.