windows Microsoft 应用程序验证程序的用途是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5207995/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 16:20:49  来源:igfitidea点击:

What is Microsoft Application Verifier for?

windowsapplication-verifier

提问by Ivan

I've got Microsoft Application Verifierinstalled with some SDK. How do I make any use of it, practically? Are there any simple examples/explanations?

我已经安装了带有一些 SDK 的Microsoft Application Verifier。实际上,我如何使用它?有没有简单的例子/解释?

回答by Ana Betts

Application Verifier attaches to your application and does various things to try to make your application crash, like simulating low-resource situations. It also makes various APIs much more strict and will do things like record who leaked handles, etc.

Application Verifier 附加到您的应用程序并执行各种操作以尝试使您的应用程序崩溃,例如模拟低资源情况。它还使各种 API 更加严格,并且会做一些事情,比如记录谁泄露了句柄等。

You should definitely be using it with every desktop application or service, though to get a lot of the information out of it, you need to attach WinDbgto your process, and Application Verifier will dump more information out to the debug window.

您绝对应该将它与每个桌面应用程序或服务一起使用,尽管要从中获取大量信息,您需要将WinDbg附加到您的进程,应用程序验证程序会将更多信息转储到调试窗口。