I thought console.log was kid stuff until I got stuck on a 4 hour bug in my tic tac toe project
Last week I was building a tic tac toe game in Python and the win check kept failing on the diagonals only. I tried adding print statements in like six places and kept losing track of which line was printing what, so I gave up around midnight and went to bed mad. The next day my roommate, who does some web stuff, looked at my screen and said "just use breakpoint() and step through it line by line." I had no clue that was even a thing. I put it right inside my check_winner function, ran the game, and watched every value change step by step, and within 10 minutes I saw I was comparing the board spots using the wrong index order on the second diagonal. Total fix was one line. I always assumed debuggers were for pros with big setups, but breakpoint() is built right into Python and needs zero setup. Anyone here switch to the debugger early on, or do you stick with print statements for small stuff?