|
|
|
|
|
by lordnacho
1212 days ago
|
|
I find I use the stepping debugger less and less as I get more experienced. Early on it was a godsend. Start program, hit breakpoint, look at values, step a few lines, see values, make conclusions. Now I rely on print statements. Most of all though, I just don't write code that requires stepping. If it panics it tells me where and looking at it will remind me I forgot some obvious thing. If it gives the wrong answer I place some print statements or asserts to verify assumptions. Over time I've also created less and less state in my programs. I don't have a zillion variables anymore, intricately dependent on each other. Less spaghetti, more just a bunch of straight tubes or an assembly line. I think it's possible that over the years I hit problems that couldn't easily be stepped. They got so complicated that even stepping the code didn't help much, it would take ages to really understand. So later programs got simpler, somehow. |
|