Print commands in debug mode

This commit is contained in:
Manuel Thalmann 2024-08-21 18:28:08 +02:00
parent e6f8bdc774
commit 93ae3c8e3e

View file

@ -28,6 +28,10 @@ $null = New-Module {
)
if (-not $Global:InOperation) {
if ($env:DEBUG) {
Set-PSDebug -Trace 1;
}
$Global:InOperation = $true;
$Global:ErrorActionPreference = 'Inquire';
$env:WSLENV = "CONFIG_MODULE/p";