3 ms·
This hasn't been my experience. When I'm unfamiliar with a codebase, or unfamiliar with a particular corner of the code, I find myself reaching for console deb
by _heimdall 1y ago
This hasn't been my experience.
When I'm unfamiliar with a codebase, or unfamiliar with a particular corner of the code, I find myself reaching for console debugging. Its a bit of a scattershot approach, I don't know what I'm looking for so I console log variables in the vicinity.
Once I know a codebase I want to debug line by line, walking through to see where the execution deviates from what I expected. I very frequently lean on conditional breakpoints - I know I can skip breaks until a certain condition is met, at which point I need to see exactly what goes wrong.