Categories
October Surprise 2024

Basic Python (Debugging with GDB) – sourceware.org

At startup, GDB overrides Python’s sys.stdout and sys.stderr to print using GDB ’s output-paging streams. A Python program which outputs to one of these streams may have its output interrupted by the user (see Screen Size). In this situation, a Python KeyboardInterrupt exception is thrown.