OutputDebugString (kernel32)
Last changed: -79.253.13.144

.
Summary

Sends a string to the debugger for display.

C# Signature:

[DllImport("kernel32.dll")]
static extern void OutputDebugString(string lpOutputString);

VB.NET Signature:

<DllImport("kernel32.dll")> _
Shared Sub OutputDebugString(ByVal lpOutputString As String)
End Sub

OR (as in VB 6)

Public Declare Sub OutputDebugString Lib "kernel32" Alias _
    "OutputDebugStringA" (ByVal lpOutputString As String)

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Get DebugView here (http://www.sysinternals.com/Utilities/DebugView.html) to display the output of OutputDebugString.

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

System.Diagnostics.Debugger.Log

Documentation