Enable debug mode in PowerShell via %DEBUG%

This commit is contained in:
Alan Mason 2017-11-27 11:23:27 -08:00
parent 7a1616c8a7
commit 0c5912d345

View file

@ -3,6 +3,9 @@
## Init ##
#Requires -Version 3.0
clear
if (Test-Path Env:\DEBUG) {
Set-PSDebug -Trace 1
}
$host.UI.RawUI.WindowTitle = "Wizard Kit: Build Tool"
$wd = $(Split-Path $MyInvocation.MyCommand.Path)
$bin = (Get-Item $wd).Parent.FullName