Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DebugRecord Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Describes a debug message that was sent to the debug stream and information about the command that sent the message. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)


[DataContractAttribute]
public class DebugRecord : InformationalRecord

NameDescription
System_CAPS_pubmethodDebugRecord(PSObject)

Initializes a new instance of the DebugRecord class with a PSObject that represents the debug record. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodDebugRecord(String)

Initializes a new instance of the DebugRecord class with the debug message sent by the command. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubpropertyInvocationInfo

Gets information about the command that created the debug, verbose, or warning record. This property is introduced in Windows PowerShell 2.0.(Inherited from InformationalRecord.)

System_CAPS_pubpropertyMessage

Gets the description of the command that created the record. This property is introduced in Windows PowerShell 2.0.(Inherited from InformationalRecord.)

System_CAPS_pubpropertyPipelineIterationInfo

Gets the state of the pipeline when the record was created by the command. This property is introduced in Windows PowerShell 2.0.(Inherited from InformationalRecord.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Converts the record information object to a string. This method is introduced in Windows PowerShell 2.0.(Inherited from InformationalRecord.)

When a command sends a message to the debug stream, the Windows PowerShell runtime creates the debug record that includes the message sent by the command and information such as the name of the command, the string used to run the command, and the location of the command in the pipeline.

Debug messages are sent when a cmdlet calls the Cmdlet.WriteDebug method, or when a provider calls a CmdletProvider.WriteDebug method when overriding a cmdlet.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: