Debug PowerShell Scripts

Feb 25, 2013 at 10:15 PM
What is the best way to debug the Powershell scripts? Is there any way we can write output to any of the log files?
Feb 26, 2013 at 4:39 PM
I'm using NuGetter 2.1 and the NuGetterMultiPkgBuildTemplate20.xaml that comes with it. I've set the PowerShell Script File to an error.ps1 that simply has:

exit 1

The ps1 simply returning an error code of 1. I'm trying to determine if the PowerShell script is even being run. It Is not erroring out like I hoped it would.