-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.bat
More file actions
45 lines (35 loc) · 875 Bytes
/
Copy pathdebug.bat
File metadata and controls
45 lines (35 loc) · 875 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
@echo off
:: Parse command line arguments
if "%1"=="test" set test=1
if "%1"=="main" set main=1
if "%1"=="help" goto :help
if "%1"=="-h" goto :help
if "%1"=="?" goto :help
:: Build targets
:: TODO: change targets for main to be .sln files when you get to it
if "%test%"=="1" (
set target=build/test.exe
set file=/src/tester/tester_main.cpp
echo Debugging tests
) else if "%main%"=="1" (
set target=build/main.exe
echo Debugging main program
) else (
set target=build/main.exe
echo Debugging main program
)
start raddbg %target% --user:dsp-user.txt --auto_step
goto :end
:help
echo Usage: debug.bat [target]
echo.
echo Targets:
echo test - Debug test solution
echo main - Debug main solution
echo (none) - Debug main solution (default)
echo.
echo Examples:
echo debug.bat test
echo debug.bat main
echo debug.bat
:end