VC6.0 不能断点调试的解决方法
来源:互联网 发布:mac air双系统切换 编辑:程序博客网 时间:2024/05/16 12:32
很久没有使用VC6.0调试了,以前的一个程序直接设置了Release模式,后来发现忘记怎么改回来了,真晕~~
下面从网上转载了设置的方法,以免以后再忘记~汗!
======================================================================================
现象是用 debug中的 step info或者run to cursor合着设置断点会出现One ormorebreakpoints cannot be set and have beendisabled. Execution will stopatthe beginning of the program.解决方法,
1.在project->setting->c/c++-general->debuginfo->program databse for edit and continue ;
2.edit->breakpoints->removeall;
3.build->set active projectconfiguration->*.exe win32 debug.
经过以上三步,ok!
另一篇:
一、两种调试方式:
1、Debug模式:
2、Release模式:
单击菜单[Project]->[Settings…],出现"ProjectSettings"对话框,选择“Release”状态;
将C/C++标签中的Category选择General,Optimizations选Disable(Debug),Debug info选Program Database;
在Link标签中选中Generate debug info复选框。
注:Release模式稍好点,因为某些情况程序只能在Release下运行,如“显示对话框的DLL”在Debug下显示出窗口后就死在那里。
二、调试中可能的错误:“不能调试”、“断点错误”。
1、“不能调试”:
“One or more breakpoints cannot be set and have beendisabled. Execution will stop at the beginning of theprogram.”
2、“断点错误”:
"One or more breakpoints are not positioned on validlines.These breakpoints have been moved to the next validline."
注意:“不能调试”跟“断点错误”不是一回事,“断点错误”会禁用某些错误断点,但“不能调试”则会禁用所有断点。
三、解决方法
1、对于“断点错误”,VC会自动帮我们定位到一行,我们不用理会!
2、对于“不能调试”,解决步骤如下:
1)、重起电脑
2)、把工程拷贝到新目录,删除ncb, .opt,.plg文件。 注意是拷贝,不是剪切。
3)、再菜单栏(menu):Build->Rebuild All。
- VC6.0 不能断点调试的解决方法
- VC6.0 不能断点调试的解决方法
- VC6.0 不能断点调试的解决方法 VC6.0没有debug模式
- VC6.0 不能断点调试的解决方法 VC6.0没有debug模式
- chrome不能断点调试的解决方法
- chrome不能断点调试的解决方法
- 关于VC6中突然不能设断点问题的解决方法
- Visual Studio 2013不能单步调试、不能断点调试的解决方法之一
- vc6.0不能设置断点解决办法
- VC6中的断点调试
- VC6下 断点调试之条件断点的使用
- wince6.0 vs2005下不能断点调试的问题
- Android 调试app,下断点后 不能断下来的解决方法
- keil 不能下断点的解决方法
- Sublimewebinspector 断点不能打上的解决方法
- VC6.0 DLL工程DEBUG模式下不能设置断点的几个解决办法
- VS2005 调试不能设置断点的解决办法
- 为什么我的XCODE不能断点调试?
- C#(winform)下引用flash[转帖]
- 解决 Exception processing async thread queue
- 我的学习之路
- cmd下的列出文件目录列表的命令
- Oracle查询用户权限
- VC6.0 不能断点调试的解决方法
- mysql5+hibernate中文排序
- DROP,TRUNCATE,DELETE三者的区别!!!(面试的时候问到频率比较高的)
- linux下常用压缩格式的压缩与解压方法
- WinCVS使用中遇到的问题及相关原因
- ResultSet类型设置详解
- 【开源】分页数据绑定控件GridPager 1.0版发布
- linux应用程序使用到的保护机制 semaphore和pthread_mutex
- 看dump文件