-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug_run.bat
More file actions
52 lines (42 loc) · 917 Bytes
/
debug_run.bat
File metadata and controls
52 lines (42 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@echo off
setlocal enabledelayedexpansion
echo ===================================
echo Translator Debug Mode
echo ===================================
echo.
set QT_DEBUG_PLUGINS=1
set QML_IMPORT_TRACE=1
set QT_LOGGING_RULES=qt.*=true
echo Current directory: %CD%
echo.
if not exist "translator_qt.exe" (
echo [ERROR] translator_qt.exe not found
pause
exit /b 1
)
if not exist "model\model_1.8B.gguf" (
echo [WARNING] model\model_1.8B.gguf not found
)
echo [OK] Files checked
echo.
echo Starting program...
echo ===================================
translator_qt.exe 2>&1
set EXIT_CODE=%ERRORLEVEL%
echo ===================================
echo.
echo Program exited with code: %EXIT_CODE%
echo.
if exist "debug.log" (
echo [DEBUG LOG]
type debug.log
echo.
)
if exist "crash.log" (
echo [CRASH LOG]
type crash.log
echo.
)
echo.
echo Press any key to close...
pause >nul