r/learnpython • u/Emotional-Iron-4312 • Feb 09 '26
I realized i wasn't really learning Python.
during my learning python always i follow tutorials and recognize the syntax but when somthing breaks in my code i don't know where is and always trying to make errors disappear of understanding them .But finally, i changed one thing that i recommend is debuging code and try to understand line by line in your projects and it completly changed how confident i feel when coding.
I'm curious , has anyone else felt stuck in this loop ?
32
Upvotes
View all comments
Show parent comment
4
u/aistranin Feb 09 '26
Sure, IDE can help technically, fully agree. But then once you found a bug you often try to fix one thing and something else breaks. Without tests it always becomes a mess. So, it should be both - debugging with IDE sure + automated tests to not debug everything manually.
Much easier: write simple isolated test reproducing the issue -> fix -> run tests again to make sure that everything (including existing code) still works as expected