How do you debug a difficult problem?
질문
면접관
How do you debug a difficult problem?
핵심 표현
- reproduce the bug make the error happen again on purpose
- narrow it down make the search area smaller
- the root cause the real reason behind a problem
모범 답변
면접관이 알고 싶은 것
Your step-by-step thinking process.
- Reproduce First, I reproduce the bug and read the error logs carefully.
- Narrow Then I narrow it down by testing small parts of the code one by one.
- Fix When I find the root cause, I fix it and add a test so it doesn't come back.
내 차례
빈칸에 내 이야기를 넣어 소리 내어 말해 보세요.
- First, I try to ____.
- Then I narrow it down by ____.
후속 질문
What tools do you use for debugging?
알아 둘 용어
- an error log
- a record of what went wrong in a program
- a unit test
- a small test for one part of the code
Interviewers care about how you think. Say each step out loud.