游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3603|回复: 6

VS2005编译下出现 无调试信息

[复制链接]

3

主题

13

帖子

17

积分

新手上路

Rank: 1

积分
17
发表于 2008-6-5 02:07:00 | 显示全部楼层 |阅读模式
在启动调试的时候 会出现一个窗口 提示 无调试信息

无法找到“game.exe”的调试信息,或者调试信息不匹配。未使用调试信息生成二进制文件

60

主题

1319

帖子

1319

积分

金牌会员

Rank: 6Rank: 6

积分
1319
发表于 2008-6-5 09:01:00 | 显示全部楼层

Re:VS2005编译下出现 无调试信息

release的吧?

3

主题

13

帖子

17

积分

新手上路

Rank: 1

积分
17
 楼主| 发表于 2008-6-5 15:32:00 | 显示全部楼层

Re:VS2005编译下出现 无调试信息

换成release 问题还是存在

60

主题

1319

帖子

1319

积分

金牌会员

Rank: 6Rank: 6

积分
1319
发表于 2008-6-6 09:13:00 | 显示全部楼层

Re:VS2005编译下出现 无调试信息

你先前是debug?那就把解决方案rebuild一下。不是让你换成release,release没有调试信息

3

主题

13

帖子

17

积分

新手上路

Rank: 1

积分
17
 楼主| 发表于 2008-6-9 22:48:00 | 显示全部楼层

Re:VS2005编译下出现 无调试信息

我都是先build 再Debug的。。。。

60

主题

1319

帖子

1319

积分

金牌会员

Rank: 6Rank: 6

积分
1319
发表于 2008-6-10 09:31:00 | 显示全部楼层

Re:VS2005编译下出现 无调试信息

先清理解决方案,或者把debug文件夹删了。再看看项目设置是不是把生成调试信息给关了。

0

主题

16

帖子

20

积分

注册会员

Rank: 2

积分
20
发表于 2008-6-13 22:41:00 | 显示全部楼层

Re:VS2005编译下出现 无调试信息

试试看这个吧:

载自: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=810855&SiteID=1

我也遇到过类似情况,如果这个方案不行,就重新new project, 再载入文件吧

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 &quotrogram 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.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-22 06:28

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表