Introduction to Debugging with Python

preview_player
Показать описание
Craig Maloney

Ever since a moth was discovered in the Mark II computer we've dealt with bugs in software. This talk will show different methods for determining what the code is doing. We'll start with the lowly print statement and introduce advanced forms of logging. We'll also cover several Python debuggers and talk about best practices for debugging and preventing bugs in Python code.

PyOhio is a free (thanks sponsors!) annual conference for Python programmers in and around Ohio and the entire Midwest.

Рекомендации по теме
Комментарии
Автор

One of the best vids on pdb for sure...

abaskm
Автор

In your first example (around 1:15), i would never be 20 anyway, even without the "i /= 4". The range would run from 1 to 19, so i would be 19 when exiting the loop.

isilanes
Автор

why doesn't it say i is not defined? because if i understand correctly i doesn't exist anymore after the loop. or does it remain in the scope of a function ?

Shockszzbyyous