AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Finding the line that is wrong: stop the program, read its last words and narrow it down

Stop a running program on the exact line and look at its values, read what an error and a log say about where things went wrong, and turn a vague bug report into one small failing example, a fix and a test that keeps it fixed.

Most of a developer's time goes to working out why code that looks right does the wrong thing. People who are good at it are not smarter: they use a small set of habits. They stop the program where it matters and look inside. They read what the error and the logs say before guessing. And they shrink the problem until it is small enough to see.

This course follows a developer at an online shop through three bugs. The Python code in each lesson runs in your browser and copies what a debugger, a stack trace, a logging library and git bisect do, so you can watch the idea work. The real tools, such as the debugger in VS Code or PyCharm, are shown next to it; the habits are the same in any language. All names and figures are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

Take an editor or IDE course first if you have not yet written and run code in one.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 30 min 🔒 AiTeky Pass Debugging with breakpoints: stop the program and look inside Use the values a program really holds instead of guessing, stop it on one line with a breakpoint, stop only when a condition is true, watch a value change as the loop runs, and see how the same ideas look in a real debugger and in Python's pdb.
  2. 02 30 min 🔒 AiTeky Pass Reading stack traces and logs: where it failed and what led up to it Read an error report from the bottom up, tell your own code from library code in a chain of calls, follow an error that was wrapped in another one, record log lines at the right levels with a request id, and pull one customer's story out of interleaved logs.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 35 min 🔒 AiTeky Pass On the job: from a vague report to a fixed bug with a test Turn a vague bug report into questions that can be answered, find the commit that broke things by halving the history, shrink a failing input of 200 lines to the one line that matters, fix it with a test that stays in the suite, and write the short note the team needs.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in