Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Set Breakpoint Based on Command

$
0
0

Summary: Learn to set a Windows PowerShell breakpoint based on a specific command.

Hey, Scripting Guy! Question How can I configure the Windows PowerShell debugger to start when a script hits a specific command?

Hey, Scripting Guy! Answer Use the Set-PSBreakpoint cmdlet and specify a specific command name, for example:

Set-PSBreakpoint -Command Foreach


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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