繁体   English   中英

如何在Visual Studio 2013中使用带有/不带Microsoft Application Verifier的Debug

[英]How to use Debug with/without Microsoft Application Verifier in Visual Studio 2013

所以我已经安装了应用程序验证程序来帮助我进行调试,但是我不知道如何正确使用它。

首先,它似乎永久地附加到视觉工作室。 每当我通过visual studio在调试模式下运行任何应用程序时,验证程序会自动进入。这是一个问题,因为它大大减慢了执行速度,但似乎没有办法在没有验证程序的情况下运行调试程序? 我真的不想每次想要使用它时重新安装它,然后再次卸载它。

其次,它似乎确实发现泄漏等效率,但我不知道如何处理输出消息:

=======================================
VERIFIER STOP 00000900: pid 0x43C: A heap allocation was leaked. 

    12626FE8 : Address of the leaked allocation. Run !heap -p -a <address> to get additional information about the allocation.
    04E2BA6C : Address to the allocation stack trace. Run dps <address> to view the allocation stack.
    11E0AFE0 : Address of the owner dll name. Run du <address> to read the dll name.
    6C660000 : Base of the owner dll. Run .reload <dll_name> = <address> to reload the owner dll. Use 'lm' to get more information about the loaded and unloaded modules.


=======================================

我在哪里可以运行列出的命令? 没有单独的控制台,启动验证程序直接启动GUI,但您也无法在其中输入任何命令。

我正在使用带有visual studio ultimate 2013的Windows 8.1。该项目是一个C ++项目。

//编辑:

关于第一个问题:我只需要从GUI中的列表中删除可执行文件,我认为如果程序没有运行会产生任何影响。

您可以在WinDBG中运行这些命令,您可以在此处获取

当使用WDK的调试器(实际上是WinDBG)进行调试时,您也可以在Visual Studio的立即窗口中运行这些命令。

回答有关如何在Visual Studio中附加App Verifier的问题:

  1. 运行Application Verifier GUI
  2. 选择要调试的二进制文件(exe / dll)
  3. 选择要检查的选项
  4. 单击[保存] - 会自动跟踪它,直到您明确删除该应用程序。 即使系统重启,这些设置也能存

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM