...
TIPS
1.You can also redirect stdout to some log file. I mean this: <source lang="bash">
Bloque de código | ||
---|---|---|
| ||
gdb trinity-core --batch -x /path/to/gdb-commands > /some/log/file |
</source>2.You can add a tail command to gdb-commands file to get the latest lines from your server.log file: <source lang="bash">
Bloque de código | ||
---|---|---|
| ||
shell echo -e "\nSERVER.LOG\n" |
...
shell tail -n 50 /path/to/your/server.log/ |
...
code50 means how much lanes to take from server.log |
...
3. You can add -ggdb3 -g3 flags to your CXXFLAGS in order to get more debug output. If you add them there is no need to add --with-debug-info switch in order to get meaningfull backtrace.
...