English 中文(简体)
如何筛选Visual Studio调试输出
原标题:howto filter Visual Studio Debug Output

I have a bunch of warnings (over 10000) in my debug output which can be savely ignored: Warning: CFile::GetStatus() returns m_attribute without high-order flags

是否可以为此窗口编写筛选器?

问题回答

在VisualStudio2005中,您可以在代码之外筛选项目的特定警告代码。打开项目的属性对话框,然后转到配置属性->;C/C++->;先进的您应该看到“禁用特定警告”设置。单击该按钮并添加要筛选的警告代码。例如,如果警告为C4996,只需输入不带C的4996。

但是,我不认为这种方法适用于没有相关代码的警告。

Visual Studio的较新版本可能提供了类似的功能。

在代码中禁用它

#pragma warning( push )
#pragma warning( disable : nnnn )
#include "nasty.h"
#pragma warning( pop )

其中nnnn是警告的编号(或这些编号的逗号分隔列表)。





相关问题
How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Trouble with VS.PHP installing it s own Apache server

I tried installing VS.PHP some time ago. I was intent on seeing how it works with my current setup. I immediately encountered trouble: none of my sites wanted to render. On windows, I m using WAMP ...

Jquery and Intellisense in VS 2008 with hotfix and SP1

I followed Scott Guthrie s instructions as outlined at http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx but no avail: intellisense still doesn t work. Any tips?

Fixing "error C2065: undeclared identifier"

First off, I m completely out of my depth here. So the question might be the wrong one to ask, but here goes... As per the accepted answer to this question, I m trying to compile the bindings for the ...

View whitespace in VS2008

After Jeph most recent post: http://www.codinghorror.com/blog/archives/001310.html, I thought to myself it would be fun to see if any of my code has those trailing whitespaces. So I open Visual ...

热门标签