Browse Source

docs: Add example

Cheng Zhao 9 years ago
parent
commit
682b48095a
1 changed files with 14 additions and 0 deletions
  1. 14 0
      docs/api/environment-variables.md

+ 14 - 0
docs/api/environment-variables.md

@@ -3,6 +3,20 @@
 Some behaviors of Electron are controlled by environment variables, because they
 are initialized earlier than command line and the app's code.
 
+Examples on POSIX shells:
+
+```bash
+$ export ELECTRON_ENABLE_LOGGING=true
+$ electron
+```
+
+on Windows console:
+
+```powershell
+> set ELECTRON_ENABLE_LOGGING=true
+> electron
+```
+
 ## `ELECTRON_RUN_AS_NODE`
 
 Starts the process as a normal Node.js process.