Small Python examples for error handling and debugging.
debugging_python.py- print debugging andpdbbreakpointsexception_handing.py-try/except/else/finallypatterns with input promptsraise_statement.py- raising, re-raising, and assertionspycharm_debugger.py- PyCharm debugger notes with a simple example
cd python/lessons/error_handling && python debugging_python.py
cd python/lessons/error_handling && python exception_handing.py
cd python/lessons/error_handling && python raise_statement.py
cd python/lessons/error_handling && python pycharm_debugger.pySome scripts prompt for input or drop into pdb.
debugging_python.pytriggers apdbbreakpoint; typento step orcto continue.- Type
qto quit the debugger.
A PySide6 app with visual, hands-on versions of all lessons above.
cd interactive_lessons && python main.pyFeatures:
- Exception Handling: Animated try/except/else/finally flowchart
- Raise Statement: Exception propagation demos, custom exception examples
- Debugging: Step-through debugger simulator with variable inspection
- IDE Debugger: Breakpoint concepts, debugging workflow guide