# encoding: ascii
# api: powershell
# title: Set-PsBreakPointLastErro
# description: From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
# version: 0.1
# type: script
# author: Lee Holmes
# license: CC0
# x-poshcode-id: 2221
# x-archived: 2016-05-17T13:33:24
# x-published: 2011-09-09T21:42:00
#
#
Set-StrictMode -Version Latest

$lastError = $error[0]
Set-PsBreakpoint $lastError.InvocationInfo.ScriptName `
    $lastError.InvocationInfo.ScriptLineNumber
