How to debug when godot just crash

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lowpolygon

I have been having this problem where when I run my project, godot would just crash with no error. I tried to undo whatever I did before but same crash would still happen.
I get no error messages . I am wondering if there is a way to say reset or refresh the whole project ?

:bust_in_silhouette: Reply From: Zylann

If only your game crashes (not the editor), there must be a bug to report. But first you need to narrow it down, by finding a reliable reproduction. Backup your project, and try to reproduce it in more recent versions of Godot (3.2 beta3 currently).
There are a few known bugs where the game crashes, for example this one: Can't inspect dictionary with over 5000 entries in debugger (or node containing it) · Issue #20258 · godotengine/godot · GitHub

Then start tearing it down: remove things not necessary to the reproduction steps. Continue removing stuff until the crash no longer happens, then put back the last thing you removed, and try to remove another.

Once you have the most stripped down reproduction project, you might be able to tell which thing made it crash. If not, you can post a crash report on Github with your test project, and eventually try to debug it yourself: grab the engine’s repo, compile it with SCons, and run it with C++ debugger attached to see which line fails.

In the meantime if you want to unblock your project, using version control (Git, SVN…) could help because then you can rollback your recent changes.

:bust_in_silhouette: Reply From: lowpolygon

I have just figured out what happened, I must have pressed Build button on top right hand corner, which would add some kind of c sharp file and changed the settings of F5 function
Anyway, I deleted some file in the project and it is working fine. I hope there would be some kind of warning message pop up to confirm the build or something.