blender_debug_log.cmd- Windows OS (feel free to convert the script for your OS)
NOTE: Blender 2.8+ versions usually ships with the script, so no need to download it if you already have the script locally. You can double-check if you have it already by searching in your root Blender folder. If your Blender/UPBGE folder doesn't have this script, you can download it from this repository.
- Place
blender_debug_log.cmdin your root Blender (if it isn't already there). - Run
blender_debug_log.cmdby clicking it. - A terminal window should open - once so, hover your cursor over the generated terminal window.
- Once the terminal window is active or in focus, push the ENTER key to confirm the opening of Blender - Blender should open normally then.
- Attempt to make Blender crash again; when it does, File Explorer should automatically open a new Explorer window containing a new TEMP folder, which should contain the newly generated crashlogs.
- In the crashlogs folder, make sure to view
blender_debug_output.txtand notblender_system_info.txtto prevent wasting time.
NOTE: Please be aware that Blender may NOT crash while the debug terminal is still open, as most exception alerts have been automatically disabled.
-
If your exported runtime has a filename other than Blender or blender, for example
Game.exe, you'll need to tweak the script to recognize your runtime in order for the script to properly launch and debug your runtime. -
To edit the script to fit your renamed runtime, open your script in a text editor and rename:
"%~dp0\blender"to"%~dp0\%PROJECT_NAME%".
NOTE: %PROJECT_NAME% should be the filename of your runtime such as Game. No need to add your runtime's extension type (exe, app, elf, etc.), that's automatically detected.