debugging strategy: use a debugger

I'm feeling pretty unsure about this one because I very rarely use debuggers.

would love to hear thoughts about what's missing here from people who use debuggers more often!

Follow

@b0rk When you have a time-travelling debugger available (like Mozilla's rr), stepping backward is very powerful. If you don't, and the code you're executing is deterministic enough across multiple runs, you can step backward to last execution of line N before point of interest by:
- executing once with a breakpoint that counts on line N,
- noting the count at the point of interest,
- executing again and actually breaking on that breakpoint when count reaches that value.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.