Jump to content
TrinityCore

Debug Mod On Linux


rezapj
 Share

Recommended Posts

i Use Centos 6 And Need To know why I Dont have Crash log

I Compile Trinity with [ debug mode]

cmake ../ -DCMAKE_INSTALL_PREFIX=/home/server -DCONF_DIR=/home/server/etc -DWITH_WARNINGS=1 -DWITH_COREDEBUG=1

-make  -make install

when my server Crashed i dont have Crash log on my [crashes] File or log file or others...

 

what is my problem ?

i am new on linux !
 

Link to comment
Share on other sites

[You don't have read the readme 1st thread]  

sorry i checked it now

[nor the warning message when enabling  -DWITH_COREDEBUG=1 ]

you say i use this ?

cmake ../ -DCMAKE_INSTALL_PREFIX=/home/server -DCONF_DIR=/home/server/etc -DWITH_COREDEBUG=1

my problem is : when server Crashed i Dont have crash log in Crashes/logs/etc folders  [ Like Windows when crash u have a log file on Crashes folder ]

 

Link to comment
Share on other sites


if( WITH_COREDEBUG )
  message("")
  message(" *** WITH_COREDEBUG - WARNING!")
  message(" *** additional core debug logs have been enabled!")
  message(" *** this setting doesn't help to get better crash logs!")
  message(" *** in case you are searching for better crash logs use")
  message(" *** -DCMAKE_BUILD_TYPE=RelWithDebug")

https://community.trinitycore.org/topic/1518-trouble-with-your-trinity-install-readme-1st-faqs/#comment-47672

Link to comment
Share on other sites

BIG thanks Aokromes

Questation !?

If your core lags to much change -O0 by -Og or even -O1. Then copy TrinityCore/contrib/debugger/crashreport.gdb to your Trinitycore's bin directory and create a file with the following lines and make it runable:

cp backtrace.log backtrace.`date +%Y%m%d-%H%M%S`.log

screen -A -m -d -S tri_world gdb -x crashreport.gdb ./worldserver -c ../etc/worldserver.conf

 

i creat  server/bin/crashreport.sh  with this lines .

1-need start crashreport.sh ?  2- or just start worldserver  ?! ( i test start crashreport.sh and see empty screen)

if 1 True ! what command USE for Start this 2 line ?!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...