Start-VMTrace
Starts tracing to a file.
Syntax
Start-VMTrace
[-Level] <TraceLevel>
[-TraceVerboseObjects]
[-Path <String>]
[<CommonParameters>]
Description
The Start-VMTrace cmdlet starts tracing to a file. You can use this information for advanced debugging.
Examples
Example 1: Start error tracing
PS C:\> Start-VMTrace -Level Error
This command starts tracing at the level of Error.
Parameters
-Level
Specifies the level of tracing. The acceptable values for this parameter are:
- Off
- Error
- Warning
- Info
- Verbose
Type: | TraceLevel |
Accepted values: | Error, Warning, Info, Verbose |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Path
Specifies the path of the file where this cmdlet stores the trace information.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TraceVerboseObjects
Specifies that tracing uses verbose objects.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Related Links
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈