Python debugging with Python PDB - commands, post mortem and much more | Python PDB tutorial

Published: 13 June 2022
on channel: Red Eyed Coder Club
6,456
175

This video is about how to debug Python code with standard Python Debugger or just PDB or Python PDB.
How to use PDB commands for debugging Python code.

Follow me @:
Telegram: https://t.me/red_eyed_coder_club
Twitter:   / codereyed  
Facebook: https://fb.me/redeyedcoderclub

Timecodes:

00:00 - Why debugging?
01:00 - Description of the Python script under debugging
02:19 - Initial Python PDB output explanation
03:13 - Python PDB commands expanation starting
03:52 - PDB 'next' or 'n' command to jump to next line
04:57 - PDB aliases. How to create and save PDB alias in .pdbrc file
07:40 - 'p' for print, and 'pp' for pretty print for Python lists and dictionaries
09:03 - PDB Post Mortem mode
09:56 - PDB 'a' for 'args' command to see arguments of a function
10:56 - Using of PDB breakpoints and the 'c' command
12:56 - PDB watch list for breakpoint with PDB 'commands' command
15:24 - PDB 's' for 'step' [step into]
15:55 - PDB stack trace with 'where' command, 'u' and 'd' for navigating through the stack trace
17:23 - PDB interact command for Python shell
17:42 - PDB conditional breakpoint (breakpoint with a condition)

Python debugging with Python PDB - commands, post mortem and much more | Python PDB tutorial
   • Python debugging with Python PDB - command...  

#python #pdb #redeyedcoderclub


On this page of the site you can watch the video online Python debugging with Python PDB - commands, post mortem and much more | Python PDB tutorial with a duration of hours minute second in good quality, which was uploaded by the user Red Eyed Coder Club 13 June 2022, share the link with friends and acquaintances, this video has already been watched 6,456 times on youtube and it was liked by 175 viewers. Enjoy your viewing!