2009-12-09 67 views

回答

6

「Microsoft Visual Studio 10.0 \ Team Tools \ TraceDebugger工具」下的VSTraceLog.exe可能是您正在查找的內容。

VSTraceLog.exe /?得到不同的選擇。

一個簡單的例子:VSTracelog.exe launch /cp:CollectionPlan.xml /f:logfilename.tdlog TheExecutableToLog.exe

你要複製的文件「微軟的Visual Studio 10.0 \團隊工具\ TraceDebugger工具\ EN \ CollectionPlan.xml」到一個已知位置並對其進行修改。打開XML文件並找到「DiagnosticEventInstrumentation」,將enabled屬性設置爲true。或者,您也可以啓用「TraceInstrumentation」。啓用TraceInstrumentation就像啓用Tools-> Options-> IntelliTrace->事件和通話信息。

+0

非常感謝Evan,我實際上錯過了您在我的安裝目錄中提到的可執行文件C:\ Program Files \ Microsoft Visual Studio 10.0 \ Team Tools \ TraceDebugger工具。我唯一的文件是TraceLogProfiler.dll。安裝Visual Studio時這是一個單獨的安裝選項嗎? – Lenik 2010-01-06 23:15:57

+0

如果您使用64位Windows,請在「C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ Team Tools \ TraceDebugger工具」中查找。 根據安裝選項,最快找到的位置可能是創建基本控制檯應用程序。設置一個斷點。 F5並擊中斷點。啓動Process Explorer(http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx),然後查看IntelliTrace.exe的屬性以獲取其位置的完整路徑。 – Evan 2010-01-11 06:28:11