---
name: debug-python-traceback
description: Understand long Python tracebacks and reach the culprit line quickly.
license: CC0-1.0
source: "https://github.com/diba7star/awesome-persian-prompts/blob/main/prompts/code.json"
via: "https://di9.ir/blog/en/prompts/debug-python-traceback"
---

Analyze this Python traceback: [full traceback]. Related code: [code]. Python and library versions: [versions]. Working bottom-up, identify exactly which file and line of my code (not the library) triggered it, what the actual data type was at that moment, give the fix, and suggest an assert or small test to prevent recurrence.
