PowerShell debug execution
问题 Trying to use module PSColor , I get the error Value cannot be null. Parameter name: command En línea: 39 Carácter: 9 + $steppablePipeline.Begin($PSCmdlet) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~` as mentioned in PowerShell New-CommandWrapper : Supply values for the following parameters How can I trace execution of commands, to find the culprit and fix the problem? What I tried: I added Set-PSDebug -Trace 2 -Strict at the top of my profile.ps1 . Enabled line Import-Module PSColor in profile.ps1