在 文件的開頭 導入System::Diagnosticsusing namespace System::Diagnostics; 就可以在 程式碼中 使用 Debug.Print("") 而文字也會顯示在 輸出的視窗中