Microsoft Interview Question

Walk me through your debugging process when you encounter a bug.

Interview Answer

Anonymous

Jul 5, 2018

Apply breakpoints in the areas you believe to be the issue. Run through the debugger step by step while adding watches on values that change as well as those at risk of being null or otherwise. When you encounter the buggy line, toss in a try catch statement to at least inform the user that there's an issue with the application as opposed to nothing at all.