mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-01-31 08:13:46 +00:00
Update 6_server-start.sh
This commit is contained in:
@@ -76,20 +76,42 @@ AUTH_CMD="${ROOT}/_server/azerothcore/acore.sh run-authserver"
|
|||||||
if [[ $DEBUG_MODE -eq 1 ]]; then
|
if [[ $DEBUG_MODE -eq 1 ]]; then
|
||||||
|
|
||||||
# via GDB with RelWithDebInfo or Debug build (debuginfod downloads missing symbols real-time)
|
# via GDB with RelWithDebInfo or Debug build (debuginfod downloads missing symbols real-time)
|
||||||
echo "DEBUG MODE: Running worldserver under GDB"
|
echo
|
||||||
echo "When crash type: 'bt full' and then 'thread apply all bt'"
|
echo "======================================================"
|
||||||
|
echo " WORLD SERVER DEBUG MODE (GDB)"
|
||||||
|
echo "------------------------------------------------------"
|
||||||
|
echo " When a crash happens, type the following in GDB:"
|
||||||
|
echo
|
||||||
|
echo " bt full"
|
||||||
|
echo " thread apply all bt"
|
||||||
|
echo " set logging off"
|
||||||
|
echo " quit"
|
||||||
|
echo
|
||||||
|
echo " Crash log will be saved to:"
|
||||||
|
echo " $GDB_LOG"
|
||||||
|
echo "======================================================"
|
||||||
|
echo
|
||||||
|
read -p "Press ENTER to continue..."
|
||||||
|
echo
|
||||||
WORLD_CMD="cd $ROOT/_server/azerothcore/env/dist/bin && \
|
WORLD_CMD="cd $ROOT/_server/azerothcore/env/dist/bin && \
|
||||||
gdb \
|
gdb \
|
||||||
-ex \"set logging file $GDB_LOG\" \
|
-ex \"set logging file $GDB_LOG\" \
|
||||||
-ex \"set debuginfod enabled on\" \
|
-ex \"set debuginfod enabled on\" \
|
||||||
-ex \"set logging enabled on\" \
|
-ex \"set logging overwrite on\" \
|
||||||
|
-ex \"set logging on\" \
|
||||||
-ex \"set pagination off\" \
|
-ex \"set pagination off\" \
|
||||||
-ex \"set confirm off\" \
|
-ex \"set confirm off\" \
|
||||||
-ex \"set print pretty on\" \
|
-ex \"set print pretty on\" \
|
||||||
-ex \"set print object on\" \
|
-ex \"set print object on\" \
|
||||||
-ex \"run\" \
|
-ex \"run\" \
|
||||||
--args ./worldserver -c ../etc/worldserver.conf"
|
--args ./worldserver -c ../etc/worldserver.conf"
|
||||||
else
|
|
||||||
|
# when crash
|
||||||
|
# bt full
|
||||||
|
#thread apply all bt
|
||||||
|
#set logging off
|
||||||
|
#quit
|
||||||
|
|
||||||
|
|
||||||
# via acore.sh for auto-restart
|
# via acore.sh for auto-restart
|
||||||
WORLD_CMD="$ROOT/_server/azerothcore/acore.sh run-worldserver"
|
WORLD_CMD="$ROOT/_server/azerothcore/acore.sh run-worldserver"
|
||||||
|
|||||||
Reference in New Issue
Block a user