You are not logged in.

#1 21 Jan 2019 16:22

wquatan
Member
Registered: 19 Jun 2012
Posts: 16

command echoing

Is it in PowerShell really not possible to echo/display/write the script-commands (like in command) on the console AFTER the command has been evaluated ?
As an example, I mean the result of
draw -F pdf -R 90 -o "$PDF_WorkA" "$PDF_Name" "$PagesA"
So that can been seen what actually is/will be executed.

I tried all sort of "Set-PSDebug -Trace 2" but none displays the evaluated command.

Very annoying while debugging a new script

Offline

#2 06 Sep 2019 15:11

CodingGuy28
Member
Registered: 06 Sep 2019
Posts: 1

Re: command echoing

Have you tried Write-Host? This is equivalent to CMD echo.

Offline

Board footer

Powered by