]> git.pond.sub.org Git - empserver/blob - doc/debugging
build-aux/git-version-gen: Refresh from Gnulib commit 4f78c231f4
[empserver] / doc / debugging
1 The most recent player commands are kept in the global array
2 player_commands[], which is indexed by player_commands_index.  Array
3 elements are strings of the form:
4
5   "%3d %3d %s", index, player->cnum, command
6
7 The server tries to log the most recent player commands when it
8 crashes.  If you need better logs after a crash, consider enabling the
9 journal log file.
10
11 When the server detects a problem, it logs it and tries to recover.
12 The code is being converted to call oops() for this purpose, commonly
13 through CANT_HAPPEN().  When you run the server with -d, oops()
14 crashes by calling abort() before the recovery.  This is what you want
15 when you run it in a debugger.