]> git.pond.sub.org Git - empserver/blob - doc/debugging
4a1e0e697d93d1202c1cf668633b85b83942127d
[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 When the player is prompted, then [prompt] is inserted as command.
8
9 The server tries to log the most recent player commands when it
10 crashes.
11
12 When the server detects a problem, it logs it and tries to recover.
13 The code is being converted to call oops() for this purpose, commonly
14 through CANT_HAPPEN().  When you run the server with -d, oops()
15 crashes by calling abort() before the recovery.  This is what you want
16 when you run it in a debugger.