2012-05-10 37 views

回答

1

Trace.WriteLine應該可以工作 - 如果你以管理員的身份從Sysinternals(免費,可從Microsoft獲得)運行DebugView,我會看到Trace.WriteLine被拋出。

我的示例代碼:

using System.Diagnostics; 

namespace ConsoleApplication1 { 
    internal class Program { 
     private static void Main (string[] args) { 
      Trace.WriteLine ("xxxxxxxxxxxxxxxxxxxx"); 
     } 
    } 
} 

調試視圖顯示了這一點:

enter image description here

它顯示了很多條目視覺Dtudio,驅動程序和可能的其他應用程序也可能有電話到底層的API。所以你可能想要使用過濾器或高亮。

一個附加提示:DebugView捕獲一臺機器的輸出。

相關問題