Wang Fu Egypt

🐞 Debugging

Unit 2 · Programming building blocks · 9 min

Bugs are normal. Common kinds: syntax errors (a missing bracket or colon), runtime errors (division by zero), logic errors (runs, wrong result). Method: read the error, print intermediate values, change one thing at a time, narrow it down.

Words in this lesson

  • 错误 (cuò wù) — error
  • 调试 (tiáo shì) — debugging

Project: Plant 3 different kinds of bugs in a small program and swap with a friend to find them.

Back to track · Learn

埃中王府
Wang Fu Egypt
加载中…