Powershell debugging options as per Issue #2550

This commit is contained in:
Lantrix 2015-08-24 17:32:01 +10:00
parent a55d2f1243
commit 1fe44b6624
1 changed files with 8 additions and 0 deletions

View File

@ -55,5 +55,13 @@ to force the log to always go to a specific file when logging is enabled. Note
that even when `PACKER_LOG_PATH` is set, `PACKER_LOG` must be set in order for
any logging to be enabled.
### Debugging Packer in Powershell/Windows
In Windows you can set the detailed logs environmental variable `PACKER_LOG` or
the log variable `PACKER_LOG_PATH` using powershell environment variables. For example:
$env:PACKER_LOG=1
$env:PACKER_LOG_PATH="packerlog.txt"
If you find a bug with Packer, please include the detailed log by using a
service such as [gist](http://gist.github.com).