Created Debug flags (markdown)

Simon Ser 2021-07-06 20:09:44 +02:00
parent 1c24718d53
commit a6f1b8e551

10
Debug-flags.md Normal file

@ -0,0 +1,10 @@
Sway has some debugging options available via the `-D` command-line flag.
- `-D damage=highlight`: paints regions that haven't been updated in yellow
- `-D damage=rerender`: disables damage tracking by forcing the whole output to be repainted each frame
- `-D noatomic`: disables atomic transactions
- `-D txn_wait`: forces all atomic transactions to time out
- `-D txn-timings`: logs addition information about transaction timings
- `-D txn-timeout=<ms>`: overrides the default atomic transaction timeout
Also see `enable_debug_flag()`.