5

Trying to debug my program but it only behaves correctly when I run it on debug mode not when I actually run the damn thing :/

Comments
  • 5
    Timing issue, multithread issue, race condition, synchronisation issue, optimization issue, etc., etc.

    But if you can already reproduce it, you have a good chance to takle it down.

    Debug with print-statements, make code reviews when you think you get near the problem and think hard about the problem.

    You will find it.
  • 1
    @ddephor I opened the rant to comment "Timing issues" 😀

    @orion-ix Do you have any breakpoints that you hit in a successful run? If so.. focus on what happens around them. They provide a sort of delay that is not present while not debugging.
    If not.. then what ddephor said exactly.
Add Comment