How do I get better at debugging?
Read the error message completely, including the line number and the type. Form a specific hypothesis about the cause. Test that one hypothesis. Changing things at random until it works is the habit to break, and it is breakable in a couple of sessions.
This comes up on Programming Fundamentals Support, where it is answered in the context of the work itself.
Not what you asked?
Ask us the actual question
Send the draft, the rubric or the score report with it. You get a real answer and a price before you commit to anything.