Visual Studio中C ++的断点 [英] Breakpoints for C++ in Visual Studio

查看:159
本文介绍了Visual Studio中C ++的断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于C ++项目,在Visual Studio中设置的断点在运行调试器时不会被打。



当我启动调试器时,我收到警告


IEXPLORER.EXE'无法找到或不匹配。没有符号加载你要开始调试吗?


我点击是继续,但是我设置的断点有一个警告说: p>


断点不会被当前命中。没有为此文档加载符号


当我调试项目时,如何获取加载的符号?我需要改变它的构建方式吗?

解决方案

最新的Internet Explorer具有不同的过程模型,它固有地禁用了ActiveX控件的调试(我想你试图调试)。有一个注册表设置可能会帮助你。



HKLM\Software\Microsoft\Internet Explorer \Main> TabProcGrowth:DWORD



将此值设置为0,您应该可以调试控件。


Breakpoints set in Visual Studio for a C++ project aren't hit when I run the debugger.

When I launch the debugger I get the warning

Debugging information for 'IEXPLORER.EXE' cannot be found or does not match. No symbols loaded. Do you want to start debugging?

I hit yes to continue, but then the breakpoints I set have a warning saying that:

The breakpoint will not be currently hit. No symbols have been loaded for this document

How do I get the symbols loaded when I debug the project? Do I need to change the way it is built?

解决方案

Latest Internet Explorer has different process model that inherently disables debugging of ActiveX controls (which I presume you're trying to debug). There is a registry setting however that may help you.

HKLM\Software\Microsoft\Internet Explorer\Main > TabProcGrowth:DWORD

Set this value to 0 and you should be able to debug controls.

这篇关于Visual Studio中C ++的断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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