From 93ae3c8e3e8e2ebbbac23bd2d7d3b1a94713d0d7 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 21 Aug 2024 18:28:08 +0200 Subject: [PATCH] Print commands in debug mode --- scripts/Common/Scripts/Operations.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1 index 9ba31025..ad7743aa 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -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";