This project demonstrates various ways to debug Python programs:
- Debugging with f-strings
- Debugging with PySnooper
- Debugging with logging
- Debugging with
breakpoint()
- Debugging with VSCode
- Debugging with stackprinter
- Debugging with PrettyErrors
Read the article: Debugging Python programs.
To install the project:
# inside python-debugging
pipenv install
To run the examples, we need to enter the virtual environment:
pipenv shell
Now just follow the instructions inside each example.
Author: Petr Stříbný
License: The MIT License (MIT)