为什么我不能调试? [英] Why can't I debug?

查看:153
本文介绍了为什么我不能调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我要在VS2005中调试C ++程序时,该程序没有停止在
的断点。



VS说没有符号是加载任何调用堆栈帧,源代码无法显示。



我可以做什么?

解决方案

感谢大家。



最后,我发现了一个解决方案这里


启用调试:



1)Goto Project-> HelloWorld属性



2 )在左侧展开配置属性



3)展开C / C ++



4)打开左侧,选择常规



5)右侧将调试信息格式更改为编辑并继续(/ ZI)的程序数据库



5)左侧选择优化



6)在右侧,将优化更改为禁用(/ Od)



7)左侧展开链接器



8)在左侧,选择调试



9)在右侧,将生成调试信息更改为是 / p>

10)点击确定



11)设置你的断点



12)重建应用程序



当运行应用程序时,使用Ctrl + F5构建并运行它,这样可以让控制台窗口打开足够长的时间,你的输出。



When I was about to debug C++ program in VS2005,the program didn't stop at the breakpoints.

The VS said"No symbols are loaded for any call stack frame. The source code cannot be displayed".

What can I do?

解决方案

Thanks to everybody.

Finally,I found a solution here.

To enable debugging:

1) Goto Project->HelloWorld Properties

2) On the left expand "Configuration Properties"

3) Expand "C/C++"

4) On the left, Select "General"

5) On the right, change "Debug Information Format" to "Program Database For Edit And Continue (/ZI)"

5) On the left, Select "Optimization"

6) On the right, change "Optimization" to "Disabled (/Od)"

7) On the left, expand "Linker"

8) On the left, select "Debugging"

9) On the right, change "Generate Debug Info" to "Yes"

10) Click ok

11) Set your breakpoints

12) Rebuild your application

Also when running your application use Ctrl+F5 to build and run it, this keeps the console window open long enough for you to see your output.

这篇关于为什么我不能调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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