作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
所以我安装了应用程序验证器来帮助我进行调试,但是我不知道如何正确使用它。
首先,它似乎已经永久地依附于 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/
我是一名优秀的程序员,十分优秀!