Question d’entretien chez MathWorks

How would you go about debugging a complex MATLAB script that is producing unexpected results?