Recognize syntax errors, runtime failures, and incorrect results, then isolate their causes with tracebacks, assertions, and debugger tools. Raise and handle exceptions without hiding important failures.