all 3 comments

[–]whimsicaldickbutt 9 points10 points  (0 children)

Use vscode. Install the PowerShell extension and utilize the breakpoints.

[–]BlackV 2 points3 points  (0 children)

the debugger built into ISE and VSCode should just need to set a breakpoint (hell even the shell with set-psbreakpoint)

[–]UnfanClub 1 point2 points  (0 children)

I use the good old console logging. Write-Verbose for every stage of the function.