2011-01-26 67 views
19

我的Visual Studio 2008專業給了我以下錯誤:Visual Studio中的日誌文件

An error has occurred in the application. For more information please see the log file. Its path is listed in the About box.

Riiight。我去了關於框,並沒有關於日誌文件。系統信息按鈕有很多信息,我甚至不知道在哪裏查找有關日誌文件位置的信息。我試着找到了,使用'log',最後放棄了 - 發現了太多'對話'和其他誤報。

那麼,該日誌文件在哪裏?

Visual Studio 2008,version 9.0.30729.1 SP; MS .NET框架版本3.5 SP1。

+0

我以爲計算器是關於編程,而不是關於編程工具本身的問題。我想超級用戶也不太適合編程工具的問題。 – thursdaysgeek 2011-01-26 21:05:42

+3

如果你看看[faq],你會發現程序員常用的*軟件工具在這裏是允許的。 – Bob 2013-01-12 14:45:49

回答

14

/Log命令行開關的documentation

If LogFile is not specified, two files will be written to the current user's non-localized application data folder. The non-localized application data folder for Visual Studio can be found from the APPDATA environment variable. For example, for Visual Studio 2008, the folder is %APPDATA%\Microsoft\VisualStudio\9.0, where %APPDATA% represents the value in the APPDATA environment variable.

The two files are, by default, called ActivityLog.xml and ActivityLog.xsl . The former contains the activity log data and the latter is an XML style sheet which provides a more convenient way to view the XML file. To view the Activity log in your default XML viewer (e.g. Internet Explorer)

你可能會與/Log開關要創建這些文件運行devenv。 Visual Studio似乎沒有默認記錄任何東西。

2

上述解決方案具有誤導性。你提到的錯誤信息基本上來自一個加載項caled VMDebugger。 他們的日誌文件的位置在加載項的關於框中可用。 的路徑看起來像這樣

C:\Users\\AppData\Local\Temp\vmware-\vmware-vsid-2.log

我發現在日誌中以下條目

6/4/2015 13:55:38: VMware Virtual Debugger loaded successfully. 
6/4/2015 14:03:03: ERROR: pControls->get_Item(CComVariant(itemName), &pCtrl) 
6/4/2015 14:03:03: An error occurred in .\Connect.cpp at line 8782. Error code is 0x80070057. 
6/4/2015 14:03:03: An error has occurred in the application. For more information please see the log file. Its path is listed in the About box. 
6/4/2015 14:03:03: ERROR: pControls->get_Item(CComVariant(itemName), &pCtrl) 
6/4/2015 14:03:03: An error occurred in .\Connect.cpp at line 8782. Error code is 0x80070057. 
6/4/2015 14:03:03: An error has occurred in the application. For more information please see the log file. Its path is listed in the About box. 

附加信息:Visual Studio 2010點中的日誌可在

%APPDATA%\Microsoft\VisualStudio\10.0\ActivityLog.xml %APPDATA% resolves to 「C:\Users\user\AppData\Roaming」