Drop Into Repl When Your Python Script Crashes
Posted2 months agoActive2 months ago
annadapb.substack.comTechstory
calmpositive
Debate
10/100
PythonDebuggingRepl
Key topics
Python
Debugging
Repl
The article discusses a technique for dropping into a REPL when a Python script crashes, allowing for easier debugging, and the comments provide additional context and related tools.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
14m
Peak period
2
0-1h
Avg / period
1.5
Key moments
- 01Story posted
Oct 22, 2025 at 8:49 AM EDT
2 months ago
Step 01 - 02First comment
Oct 22, 2025 at 9:03 AM EDT
14m after posting
Step 02 - 03Peak activity
2 comments in 0-1h
Hottest window of the conversation
Step 03 - 04Latest activity
Oct 22, 2025 at 11:12 AM EDT
2 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45668285Type: storyLast synced: 11/17/2025, 9:10:54 AM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Better yet, put it in sitecustomize.py or usercustomize.py , which are intentionally provided as hooks to customize your environment. Now you get it for all your projects, and don't have to take it out for packaging (or leave it in, I guess there are people who would do that...).
https://docs.python.org/3/library/site.html
pytest docs > How to handle test failures > Using pdb — The Python Debugger with pytest > Dropping to pdb on failures: https://docs.pytest.org/en/stable/how-to/failures.html