2019-03-12 11:36:44 -06:00
|
|
|
@echo off
|
|
|
|
|
echo Starting blender with GPU debugging options, log files will be created
|
|
|
|
|
echo in your temp folder, windows explorer will open after you close blender
|
|
|
|
|
echo to help you find them.
|
|
|
|
|
echo.
|
2023-02-07 14:11:15 +01:00
|
|
|
echo If you report a bug on https://projects.blender.org you can attach these files
|
2019-03-12 11:36:44 -06:00
|
|
|
echo by dragging them into the text area of your bug report, please include both
|
|
|
|
|
echo blender_debug_output.txt and blender_system_info.txt in your report.
|
|
|
|
|
echo.
|
|
|
|
|
pause
|
|
|
|
|
echo.
|
|
|
|
|
echo Starting blender and waiting for it to exit....
|
2024-02-06 21:12:15 +01:00
|
|
|
setlocal
|
|
|
|
|
|
2019-06-15 11:30:31 -06:00
|
|
|
set PYTHONPATH=
|
2024-02-06 21:12:15 +01:00
|
|
|
set DEBUGLOGS="%temp%\blender\debug_logs"
|
2025-03-04 07:28:49 +01:00
|
|
|
set VK_LOADER_DEBUG=all
|
2024-02-06 21:12:15 +01:00
|
|
|
mkdir "%DEBUGLOGS%" > NUL 2>&1
|
|
|
|
|
|
2025-06-12 02:19:57 +02:00
|
|
|
"%~dp0\blender" --debug --debug-gpu --log cycles --python-expr "import bpy; bpy.context.preferences.filepaths.temporary_directory=r'%DEBUGLOGS%'; bpy.ops.wm.sysinfo(filepath=r'%DEBUGLOGS%\blender_system_info.txt')" > "%DEBUGLOGS%\blender_debug_output.txt" 2>&1 < %0
|
2024-02-06 21:12:15 +01:00
|
|
|
explorer "%DEBUGLOGS%"
|