Print commands in debug mode

This commit is contained in:
Manuel Thalmann 2024-08-21 18:28:08 +02:00
parent 4a24e241d8
commit c1a8ba2f8f

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";