C#
1 2 3 |
using System.Diagnostics; Debug.WriteLine("message"); |
C++/CLI
1 2 3 4 |
#using <system.dll> using namespace System::Diagnostics; Trace::WriteLine("message"); |
C++ (MFC)
1 2 3 |
#include <afx.h> TRACE("message"); |
C / C++ (WIN32API)
1 |
OutputDebugStringA("ASCII and Shift_JIS message"); |
1 |
OutputDebugStringW(L"UTF-16 message"); |