Debug ps1 files
i use powershell_ise.exe create , debug file.ps1 pressing f9 set breakpoints. ,
i use powershell.exe -file c:\file.ps1 run in batch file. there way debug when running in batch file? thanks.
hi ian,
for values of debugging, can add
$host.enternestedprompt()
to script, interrupt execution , give prompt of current state available. if so, may want add way tell debugging versus regular execution , wrap piece if-condition, otherwise script execution interrupted in production use.
cheers,
fred
there's no place 127.0.0.1
Windows Server > Windows PowerShell
Comments
Post a Comment