]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/debug.sh
You can now see other players
[dragonblocks_alpha.git] / src / debug.sh
index 88dc3fa76aaccdd846aed4bd254f46e9fdc515cc..5dc2bac9be813791ab24ce609a80e28f042ce1b3 100755 (executable)
@@ -1,4 +1,5 @@
-#! /bin/bash
+#!/bin/bash
+
 if ! make -j$(nproc); then
        exit 1
 fi
@@ -12,28 +13,31 @@ COMMON="set confirm off
 handle SIGTERM nostop print pass
 handle SIGPIPE nostop noprint pass
 set height 0
-set \$_exitcode 1
+set \$_exitcode=1
 define hook-stop
     if \$_exitcode == 0
         quit
     end
 end
+break gl_error
 "
 
 echo "$COMMON
-run ::1 4000 < $DEBUG_DIR/name
+run \"[::1]:4000\" < $DEBUG_DIR/name
 " > $DEBUG_DIR/client_script
 
 echo "$COMMON
-run 4000
+set print thread-events off
+run \"[::1]:4000\"
 " > $DEBUG_DIR/server_script
 
-konsole -e bash -c "
+alacritty -e bash -c "
        echo \$\$ > $DEBUG_DIR/server_pid
-       exec gdb --command $DEBUG_DIR/server_script ./DragonblocksServer
-" & sleep 0.5
+       exec gdb --command $DEBUG_DIR/server_script ./dragonblocks_server
+" &
+sleep 0.5
 
-gdb --command $DEBUG_DIR/client_script ./Dragonblocks
+gdb --command $DEBUG_DIR/client_script ./dragonblocks
 
 kill `cat $DEBUG_DIR/server_pid`