가이드 연계 퀴즈 · 쉬움 레벨
AI 퀴즈로 코드를 디버그하는 방법
스택 추적 읽기, 재현 가능한 최소한의 예제 작성, 블라인드 코드 재작성 대신 AI에게 테스트 가능한 가설 요청을 연습하세요.
질문 1 의 8
AI에게 전체 파일을 다시 작성하도록 요청하는 대신 가이드에서는 무엇을 요청하도록 권장합니까?
모든 질문 미리보기8 질문
퀴즈를 풀면 정답과 설명이 나타납니다.
- AI에게 전체 파일을 다시 작성하도록 요청하는 대신 가이드에서는 무엇을 요청하도록 권장합니까?
- A longer version of the same code
- The most likely causes and how to check each one
- A translation of the code into another language
- More comments throughout the file
- Python 추적에서 예외 유형과 메시지는 어디서 찾을 수 있나요?
- On the very first line
- In the middle of the trace
- On the final line, because the most recent call is printed last
- It is not shown in the traceback
- 최소 재현 가능한 예는 무엇입니까?
- The smallest code and data that still shows the problem
- The entire project compressed into one file
- A screenshot of the error
- A list of all installed library versions
- AI에게 가장 유용한 정보를 제공하는 버그 설명은 무엇입니까?
- It doesn't work
- Please fix my code
- My code is broken again
- I expected 10 rows, I get 0, and there is no error
- AI가 제안한 수정 사항을 적용하기 전에 코드를 커밋하거나 숨기는 이유는 무엇입니까?
- It makes the AI's answers more accurate
- So you can revert if the suggestion makes things worse
- It automatically deletes old bugs
- It uploads your code to the AI
- Why is the line named in an error message not always where the bug is?
- Error line numbers are random
- Compilers often count lines incorrectly
- The bug is often earlier, where the bad value was created, not where it was used
- Bugs are always inside third-party libraries
- After applying a fix, what should you do to confirm it?
- Close the chat and move on
- Ask a different AI whether it looks right
- Assume it works if no error appears
- Rerun the original failing case plus some normal cases
- What does the guide suggest doing with your reproduction once the bug is fixed?
- Turn it into an automated test
- Delete it to keep the project clean
- Post it publicly as a tutorial
- Comment it out for later