Debug Python from the Command Line with pdb

Publié le: 25 avril 2022
sur la chaîne: codevev
6,913
like

On bigger projects, it often takes a long time for the IDE debugger to start up, and we can't afford to waste our valuable time waiting on it after each change.
That's why I finally had to give up the VSCode debugger and go with PDB, also known as Python Debugger.
It definitely seems scary and hard at first, when all you are presented with is the terminal with the prompt that says "PDB" and nothing else.
But things are only hard when we are not familiar with them. In fact, you only need to know a handful of commands to get started with debugging in PDB.
In this video, I will show you three ways of entering a PDB session, how to get help if you ever forget any of the commands, how to see the values of variables, step over lines or step into functions, as well as see where you are in the call stack.
These four and a half minutes of you watching this video will be an investment and save you a lot of time in the future, especially if you work in a large codebase.

#python #debugging #programming #softwaredevelopment
-------------------------------------------------------------------------------------
📰 Sign up for my newsletter
Become a better dev in just 5 minutes (or so) a week: https://codevev.com

☕*Buy me a coffee*
You can express your support by buying me a coffee at https://buymeacoffee.com/codevev

🖥️ Free Courses to Learn Programming
Harvard CS 50: https://pll.harvard.edu/course/cs50-i...
FreeCodeCamp: https://www.freecodecamp.org
Udacity: https://www.udacity.com

🛒 Products I recommend
https://codevev.com/#products

Connect with me
Website: https://evgenyurubkov.com
Youtube:    / @codevev  

#codevev


Sur cette page du site, vous pouvez voir la vidéo en ligne Debug Python from the Command Line with pdb durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur codevev 25 avril 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 6,913 fois et il a aimé like téléspectateurs. Bon visionnage!