Debugging Python with pdb at the command line
In this video I briefly show how to debug a function interactively at the command line using the standard pdb library.
The commands I use are:
- list (lists the code)
- s (steps through)
- p (print the current value of a variable)
- n (moves through code, without going through function definitions)
- break (create a break point or view current break points)
- c (continues until reaching an enabled break point)
- disable (disable a break point)
- enable (enable a break point)
- clear (delete a break point)
- tbreak (create a temporary break point)
finally I also talked about the very useful ability to create break points that only work for given conditions.
Видео Debugging Python with pdb at the command line канала Vincent Knight
The commands I use are:
- list (lists the code)
- s (steps through)
- p (print the current value of a variable)
- n (moves through code, without going through function definitions)
- break (create a break point or view current break points)
- c (continues until reaching an enabled break point)
- disable (disable a break point)
- enable (enable a break point)
- clear (delete a break point)
- tbreak (create a temporary break point)
finally I also talked about the very useful ability to create break points that only work for given conditions.
Видео Debugging Python with pdb at the command line канала Vincent Knight
Комментарии отсутствуют
Информация о видео
4 мая 2014 г. 0:09:08
00:07:09
Другие видео канала