Search code examples
godotgdscript

The debugger crashes randomly during debugging in Godot 4.21


During debugging, at a random stage of debugging, the game closes without any errors, and the debugging process stops. There are no errors following this. Without debugging, the game runs normally and does not close during operation.

I've reviewed the code multiple times, but pinpointing the source of the error seems impossible because the crash occurs at absolutely any stage of debugging. I'm out of ideas. Has anyone encountered similar behavior? Video: https://www.youtube.com/watch?v=9m1fz-Kz0w4&ab_channel=Lingondary


Solution

  • Whoever has this problem, look into using C# and GDScript together in the same project. Using the godot debug build helped me to guess the culprit of the crash. I can't name the error itself, but excluding C# from the project eliminated the crash.