WinDbg / CDB workflow¶
Remote server setup (works reliably)¶
Just shortcuts (Windows):
Notes:
just windbg-clientuses-bonc, so you mustgafter attaching.- Client output is not persisted by the server; if the client session drops, logs are lost.
- The server logs to
C:\Crimsonland\windbg.log(overwritten on each server start, ASCII/ANSI). -
The server should be started by the user. Codex only connects as a client to run commands, and we inspect the server log file to see captured output.
-
just windbg-tailprints any new log lines since the last read and remembers its position inC:\Crimsonland\windbg.log.pos. -
The tail script decodes ASCII by default and switches to UTF-16 if a BOM is present.
Workflows¶
User workflow (server owner)¶
1) Start the server (once, long-lived):
2) Keep it running. The user does not need to connect a client or tail the log.
Agent workflow (short-lived reconnects)¶
1) The user starts the server and keeps it running. The agent never starts a server.
2) On every agent reconnect, catch up first:
3) Then connect and run the agent commands:
4) Resume the game (g) if needed, and disconnect the client (Ctrl+B).
Notes:
- The log is written by the server (
-logo), so it survives client drops but resets on server restart. - The tail script reads only new bytes from
C:\Crimsonland\windbg.log.