Artifact 31dfbf67a73caf44f321d5054c1fa4f7374214493a9d1049b4a1ff90f68e1115:
- File Set-PsBreakPointLastErro.ps1 — part of check-in [fba69200ab] at 2018-06-10 13:07:24 on branch trunk — From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes (user: Lee Holmes size: 482)
# 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