gpt4 book ai didi

c++ - 如何在 Visual Studio 2013 中使用带/不带 Microsoft Application Verifier 的调试

转载 作者:可可西里 更新时间:2023-11-01 09:20:09 24 4
gpt4 key购买 nike

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

首先,它似乎已经永久地依附于 visual studio。每当我通过 visual studio 在 Debug模式下运行任何应用程序时,验证器都会自动介入。这是一个问题,因为它会大大降低执行速度,但似乎没有办法在没有验证器的情况下运行调试器了?实在不想每次要用都重装,然后又卸载。

其次,它似乎确实能有效地发现泄漏,但我不确定如何处理输出消息:

=======================================
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,但你也不能在那里输入任何命令。

我正在使用 windows 8.1 和 visual studio ultimate 2013。该项目是一个 C++ 项目。

//编辑:

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

最佳答案

您可以在 WinDBG 中运行这些命令,您可以获得 here

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

关于c++ - 如何在 Visual Studio 2013 中使用带/不带 Microsoft Application Verifier 的调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27214914/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com