There are debugging techniques you can use.
If you're not using static typing, use it.
Add print statements or breakpoints.
Start removing stuff until the project doesn't crash.
Or start with a new project, and add stuff from the crashing project until the new project starts crashing.