Python Tutorial: Debugging logic errors by hand tracing your code

preview_player
Показать описание
In this video I show you how to debug logic errors using a technique known as hand tracing, or tracing your code, or desk checking your code. It goes by a lot of names, but the idea is simple: use your brain as the CPU, use a piece of paper as memory, and then step through each line of code, one line at a time, updating your memory (the piece of paper) as you go.

By doing this, you will almost always be able to track down your errors.

Debugger programs simply automate this process for you somewhat. So, if you don't know how to do this, you won't know how to use a debugger program.

This is a MUST HAVE SKILL.

It can also help you to understand tricky code you didn't write yourself as well as algorithms written in pseudocode or plain language.
Рекомендации по теме
Комментарии
Автор

Thanks man, i am not english and i have to know this for an exam and couldn't find anything in my language

no-one
join shbcf.ru