Debugging StumpWM (StumpWM Manual)

### 14.4 Debugging StumpWM ¶

Variable: *debug-level* ¶

  Set this variable to a number > 0 to turn on debugging. The greater the number the more debugging output.

Variable: *debug-stream* ¶

  This is the stream debugging output is sent to. It defaults to *error-output*. It may be more convenient for you to pipe debugging output directly to a file.

Variable: *debug-expose-events* ¶

  Set this variable for a visual indication of expose events on internal StumpWM windows.

Function: redirect-all-output file ¶

  Elect to redirect all output to the specified file. For instance, if you want everything to go to ~/.stumpwm.d/debug-output.txt you would do:

      (redirect-all-output (data-dir-file "debug-output" "txt"))