C# OutputDebugString for DebugTrack @ 071's blog :: 隨意窩 Xuite日誌
    1. 沒有新回應!
  • 202002061723C# OutputDebugString for DebugTrack


    using System.Diagnostics; // for Debug
    using System.Runtime.InteropServices; // DllImport

     

    namespace CSharp_Debug
    {
    public partial class Form1 : Form
    {
    [DllImport("kernel32.dll", CharSet = CharSet.Auto)]
    public static extern void OutputDebugString(string message);

    public Form1()
    {
    InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
    Debug.WriteLine("Debug.WriteLine"); // only for debug mode
    Trace.WriteLine("Trace.WriteLine");
    Debugger.Log(0, null, "Debugger.Log");
    OutputDebugString("OutputDebugString");
    }

    }
    }

    websocket over http (nginx)|日誌首頁|沒有下一則上一篇websocket over http (nginx)
    回應