Scripting. Powershell, VMware, Windows, Active Directory & Exchange. All that kind of stuff…..
RSS icon Email icon Home icon
  • PowerShell 2.0: One Cmdlet at a Time #60 Get-PSBreakpoint

    Posted on February 10th, 2010 Jonathan Medd No comments

    Continuing the series looking at new cmdlets available in PowerShell 2.0. This time we look at the Get-PSBreakpoint cmdlet.

    What can I do with it?

    Retrieve debugging breakpoints that have been set with Set-PSBreakpoint.

    Examples:

    Retrieve all current breakpoints.

    Get-PSBreakpoint

    Notice the different options which have been set on the breakpoints.

    Get-PSBreakpoint1

    Retieve only breakpoints which have been set using the Variable parameter.

    Get-PSBreakpoint -Type Variable

    Notice only one breakpoint is returned this time.

    Get-PSBreakpoint2

    How could I have done this in PowerShell 1.0?

    Setting breakpoints did not exist in PowerShell 1.0, however most scripting IDE’s ship with debugging features.

    1000 things 1% better!

    Leave a reply