Include debug script for C++ Projects

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
sigonasr2 2022-10-18 02:43:50 -05:00
parent 1457de1591
commit 6b2d7997ce
3 changed files with 9 additions and 0 deletions

7
C++/scripts/debug.sh Executable file
View File

@ -0,0 +1,7 @@
#Compiles the entire program with debug flags then runs it in gdb.
#C++
printf "Running program...\n\n\n"
if g++ $(find . -type f -name "*.cpp") -g ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then
gdb ./${PROJECT_NAME} "$@"
fi
printf "\n\n"

View File

@ -1,5 +1,6 @@
build.sh build.sh
commit.sh commit.sh
debug.sh
lines.sh lines.sh
release.sh release.sh
temp temp

View File

@ -1,5 +1,6 @@
build.sh:530634457ea9041267c05d4ced95eee1 - build.sh:530634457ea9041267c05d4ced95eee1 -
commit.sh:d03a46e721060c22ccb146e19d27e70a - commit.sh:d03a46e721060c22ccb146e19d27e70a -
debug.sh:abbbb0c6d9f2409f3a90738ab3d9d44f -
lines.sh:3b907786f7fc9204025993016c9080de - lines.sh:3b907786f7fc9204025993016c9080de -
release.sh:a54e2002be80814cc1293a11dff4d116 - release.sh:a54e2002be80814cc1293a11dff4d116 -
temp:d41d8cd98f00b204e9800998ecf8427e - temp:d41d8cd98f00b204e9800998ecf8427e -