Print out the provided debug message prefixed by the thread ID.
Example:
ghci> debug "Some debug message"
[ 225] Some debug message
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulesnap-core-1.0.5.1Haskell2010
An internal Snap module for (optionally) printing debugging messages. To
enable debug output, compile the library with the debug flag (off by
default) and set the environment variable DEBUG to 1. We use
unsafePerformIO to make sure that the call to getEnv is only made once.
N.B. this is an internal interface, please don't write external code that depends on it.
Print out the provided debug message prefixed by the thread ID.
Example:
ghci> debug "Some debug message"
[ 225] Some debug message