Print commands in debug mode
This commit is contained in:
parent
e6f8bdc774
commit
93ae3c8e3e
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@ $null = New-Module {
|
||||||
)
|
)
|
||||||
|
|
||||||
if (-not $Global:InOperation) {
|
if (-not $Global:InOperation) {
|
||||||
|
if ($env:DEBUG) {
|
||||||
|
Set-PSDebug -Trace 1;
|
||||||
|
}
|
||||||
|
|
||||||
$Global:InOperation = $true;
|
$Global:InOperation = $true;
|
||||||
$Global:ErrorActionPreference = 'Inquire';
|
$Global:ErrorActionPreference = 'Inquire';
|
||||||
$env:WSLENV = "CONFIG_MODULE/p";
|
$env:WSLENV = "CONFIG_MODULE/p";
|
||||||
|
|
Loading…
Reference in a new issue