如何在Visual Studio 2013中使用带有/不带有Microsoft Application Verifier的调试 [英] How to use Debug with/without Microsoft Application Verifier in Visual Studio 2013

查看:140
本文介绍了如何在Visual Studio 2013中使用带有/不带有Microsoft Application Verifier的调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

So I've installed the application verifier to help me with debugging, however I don't know how to use it properly.

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

First off, it seems to have attached itself permanently to visual studio. Whenever I run any application in debugging mode through visual studio, the verifier automatically steps in. This is a problem, because it slows down the execution massively, but there doesn't seem to be a way to run the debugger without the verifier anymore? I really don't want to reinstall it every time I want to use it, and then deinstall it again.

其次,它似乎确实可以发现泄漏并如此有效,但是我不确定如何处理输出消息:

Secondly, it does seem to find leaks and such efficiently, but I'm not sure what to do with the output messages:

=======================================
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,但是您也不能在其中输入任何命令.

Where can I run the listed commands? There's no separate console, and starting the verifier directly starts up a GUI, but you can't enter any commands there either.

我在Visual Studio Ultimate 2013中使用Windows 8.1.该项目是C ++项目.

I'm using windows 8.1 with visual studio ultimate 2013. The project is a C++ project.

//

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

Regarding the first issue: I just had to remove the executable from the list in the GUI, I didn't think that would have any effects if the program wasn't running.

推荐答案

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

You can run these commands in WinDBG which you can get here

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

You can also run these commands in Immediate Window of Visual Studio when debugging using debugger from WDK (which is essentially WinDBG).

这篇关于如何在Visual Studio 2013中使用带有/不带有Microsoft Application Verifier的调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆