You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionGet-Caller {
<#.SYNOPSIS Shows the caller of the current function..EXAMPLE Show-Caller Shows the caller of the current function.#>
[outputType([string])]
[CmdletBinding()]
param()
$stack=Get-PSCallStack$called=$stack[1].Command
$caller=$stack[2].Command
"$caller called $called"
}
The text was updated successfully, but these errors were encountered:
Describe the change
Shallow logging
Private functions => debug
Public functions => verbose > debug
Deep logging
Logging from referenced external functions use PowerShell logging preferences to enable deep logging.
Have a function that shows invocations
The text was updated successfully, but these errors were encountered: