HACKER Q&A
📣 quelsolaar

Whats your favorite Debugging tricks?


It doesn't seem to be a topic covered very much in Computer Science, and isn't a topic regularly discussed among programmers despite the amount of time most people spend doing it.

What are your favorite debugging tricks?


  👤 simplecto Accepted Answer ✓
Learn to use a real debugger, not just print() statements

Breakpoints, value peeking, step into, step over are incredibly value especially on larger blocks of code


👤 jdanders
Fix the first bug first. The second bug might be fixed by the first.

👤 phendrenad2
dtrace/strace