These are slides for the 30-minute talk I gave at DjangoCon Africa in 2023 in Zanzibar on debugging tools.
PYTHON DEBUGGING:TECHNIQUES & TOOLSVUYISILE NDLOVU@terrameijar
View Slide
Vuyisile Ndlovu@terrameijarvuyisile.com@terrameijar
What we’ll cover today➢ What debugging is➢ Debugger fundamentals➢ Debugging tools; pdb, VS CodeDebugger➢ CLI & Visual Debuggers➢ Demo@terrameijar | vuyisile.com/djcafrica2023
DEBUGGING@terrameijar | vuyisile.com/djcafrica2023
“Debugging usually means figuring outwhy a design doesn't work as planned.”– David J Agans
DEBUGGER FUNDAMENTALS@terrameijar | vuyisile.com/djcafrica2023
- Set Breakpoints- Navigate code- Inspect code- Post mortem and Execution@terrameijar | vuyisile.com/djcafrica2023Debuggers allow you to
DEBUGGING TOOLS@terrameijar | vuyisile.com/djcafrica2023
PDB@terrameijar | vuyisile.com/djcafrica2023
@terrameijar | vuyisile.com/djcafrica2023
HELP
- break- print- next- step- continue- until- list- where- quitCommands I like
PDB DEMO@terrameijar | vuyisile.com/djcafrica2023
VS CODE DEBUGGER@terrameijar | vuyisile.com/djcafrica2023
CREATE A DEBUG CONFIGURATION
SELECT CONFIGURATION TYPE
VS CODE DEBUGGER CONTROLS
VS CODE DEMO@terrameijar | vuyisile.com/djcafrica2023
Conclusion
https://wiki.python.org/moin/PythonDebuggingToolshttps://docs.python.org/3/library/pdb.htmlhttps://realpython.com/python-debugging-pdb/https://github.com/pdbpp/pdbppADDITIONAL RESOURCES@terrameijar | vuyisile.com/djcafrica2023
Thanksvuyisile.com/djcafrica2023@terrameijar
CREDITS: This presentation template wascreated by Slidesgo, including icons byFlaticon, infographics & images by Freepik