PowerTip: Easy Way to Troubleshoot PowerShell Script

Doctor Scripto

Summary: Learn the easy way to troubleshoot a Windows PowerShell script.

   I receive an error message every time I run my Windows PowerShell script. What is an easy way to troubleshoot the
            script in the Windows PowerShell ISE?

  Highlight the line of code in the script to select it (use the mouse or keyboard shortcuts), and then press F-8 to
           run only the selected line of code. If no errors arise, select the next line of code and repeat the process until
           an error arises.

 

0 comments

Discussion is closed.

Feedback usabilla icon