< Back
Invoke-PSCallTrace
Post
NAME Invoke-PSCallTrace
SYNOPSIS
Invoke-PSCallTrace generates debug information, and loads it into the PSCallTrace objects.
SYNTAX
Invoke-PSCallTrace [[-Level] <Int32>] [[-Object] <PSObject>] [-Begin] [-Process] [-End] [[-Hook] <Object>]
[[-Arguments] <Object[]>] [<CommonParameters>]
DESCRIPTION
Invoke-PSCallTrace generates debug information, and loads it into the PSCallTrace objects.
Note: This is an advanced feature, that allows you to specifically grab CallTrace data
directly in your code without the use of a TraceHook.
See Examples for additional information.
PARAMETERS
-Level <Int32>
Required? false
Position? 1
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-Object <PSObject>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Begin [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Process [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-End [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Hook <Object>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Arguments <Object[]>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>. {
function MyFunction {
begin {
$PSStackData = Invoke-PSCallTrace -Begin
}
process {
Invoke-PSCallTrace -Object $PSStackData -Process
}
end {
Invoke-PSCallTrace -Object $PSStackData -End
}
}
}
RELATED LINKS
SYNOPSIS
Invoke-PSCallTrace generates debug information, and loads it into the PSCallTrace objects.
SYNTAX
Invoke-PSCallTrace [[-Level] <Int32>] [[-Object] <PSObject>] [-Begin] [-Process] [-End] [[-Hook] <Object>]
[[-Arguments] <Object[]>] [<CommonParameters>]
DESCRIPTION
Invoke-PSCallTrace generates debug information, and loads it into the PSCallTrace objects.
Note: This is an advanced feature, that allows you to specifically grab CallTrace data
directly in your code without the use of a TraceHook.
See Examples for additional information.
PARAMETERS
-Level <Int32>
Required? false
Position? 1
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-Object <PSObject>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Begin [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Process [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-End [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Hook <Object>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Arguments <Object[]>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>. {
function MyFunction {
begin {
$PSStackData = Invoke-PSCallTrace -Begin
}
process {
Invoke-PSCallTrace -Object $PSStackData -Process
}
end {
Invoke-PSCallTrace -Object $PSStackData -End
}
}
}
RELATED LINKS