BAE Systems interview question

How you would go about solving a code bug?