advanced
Debugging Assistant
Provide a step-by-step strategy to fix a reported bug.
📝 提示内容
I am encountering a bug in my Python script where a list index is out of range. The script processes user input from a text file. Explain a systematic approach to debug this issue, including specific print statements or breakpoints I should use to isolate the cause, and suggest 3 common reasons why this specific error might be happening in this context.