# Attaching winedbg to the running game kills it

## Symptoms

`winedbg --pid PID` attaches, and the game dies.

## Tried

- Attaching to the running game under Wine 11.18 on macOS: the game died, twice (*observed*).
- winedbg breakpoints did work earlier in the same project: they measured POD's mode-table
  value. How that session was started is not recorded.
- Wine's trace channels (`+seh`, `+ddraw`, `+file`, `+relay`) in place of a debugger: these
  worked every time. Use them instead ([Wine on macOS](https://tanepiper.github.io/game-frame/knowhow/context-wine-macos.md)).
- A 64-bit game (Banished) under CrossOver 26.3: `winedbg --gdb --no-start 0xPID` attached,
  and the game ran on after each detach. Breakpoints need care there
  ([winedbg's GDB server](https://tanepiper.github.io/game-frame/knowhow/winedbg-gdb-server.md)).
