Cmdlet.WriteDebug(String) Cmdlet.WriteDebug(String) Cmdlet.WriteDebug(String) Method


Display debug information

public void WriteDebug (string text);
member this.WriteDebug : string -> unit
Public Sub WriteDebug (text As String)
String String String

debug output


The pipeline has already been terminated, or was terminated during the execution of this method. The Cmdlet should generally just allow PipelineStoppedException to percolate up to the caller of ProcessRecord etc.

Not permitted at this time or from this thread. WriteDebug may only be called during a call to this Cmdlet's implementation of ProcessRecord, BeginProcessing or EndProcessing, and only from that thread.


If the pipeline is terminated due to ActionPreference.Stop or ActionPreference.Inquire, this method will throw PipelineStoppedException, but the command failure will ultimately be ActionPreferenceStopException,

Applies to

See Also