Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Debug a Workflow with PowerShell 4.0

$
0
0

Summary: Use Windows PowerShell 4.0 to debug a workflow.

Hey, Scripting Guy! Question How do I set a breakpoint in a Windows PowerShell script workflow?

Hey, Scripting Guy! Answer Add the workflow to a script and use Set-PSBreakpoint to set a line breakpoint in the workflow:

Set-PSBreakpoint -Script C:\Test-MyWorkflow1.ps1 -Line 12

 

ID Script                           Line Command   Variable  Action

-- ------                           ---- -------   --------  ------

   0 WFExample1.ps1                     12


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>