diff --git a/documentation/debugging.sgml b/documentation/debugging.sgml
index d394c607a84..829d1e14f62 100644
--- a/documentation/debugging.sgml
+++ b/documentation/debugging.sgml
@@ -242,7 +242,7 @@ HANDLE32 WINAPI YourFunc(LPCSTR s)
and then to run wine like that:
- $ wine --debugmsg +relay,+snoop setup.exe &>/tmp/debug_pipe
+ $ WINEDEBUG=+relay,+snoop wine setup.exe &>/tmp/debug_pipe