you are viewing a single comment's thread
view the rest of the comments
[–] 16 points 5 months ago (2 children)

a while ago, during a game jam, while i was making some of the worst gdscript i have ever seen, i have encountered a bug

after adding a print to see the value of a variable, the bug disappeared. Confused, i commented out the line i just added. The bug was still fixed

i removed the comment. The bug reappeared

  • source
  • hideshow 2 child comments
  • [–] 3 points 5 months ago (1 child)

    printing to a console could enforce a flush, sync thread or other shenanigans.

    usually setting a breakpoint would have the same effect and gives me the suggestion of a threading issue.

  • source
  • parent
  • hideshow 1 child comment