Hacker News new | ask | show | jobs
by greenyoda 2603 days ago
These techniques are not mutually exclusive. Using a debugger to help find the bug doesn't prevent you from adding assertions or logging to your code afterwards if you think they can be useful. For that matter, you can use a combination of debugger and asserts/logging to find the bug.