VC6.0 不能断点调试的解决方法 VC6.0没有debug模式
来源:互联网 发布:清新网站引导页源码 编辑:程序博客网 时间:2024/06/06 00:13
调试旧程序,VC6.0环境
1.VC6.0没有debug模式
Build->Configurations->Add
2.VC6.0不能断点调试 转载地址:http://blog.csdn.net/bin_zh123/article/details/5733459
现象是用 debug中的 step info或者run to cursor合着设置断点会出现One or morebreakpoints cannot be set and have been disabled. Execution will stopat the beginning of the program.解决方法,
1.在project->setting->c/c++-general->debug info->program databse for edit and continue ;
2.edit->breakpoints->removeall;
3.build->set active project configuration->*.exe win32 debug.
经过以上三步,ok!
另一篇:
一、两种调试方式:
1、Debug模式:
2、Release模式:
单击菜单[Project]->[Settings…],出现"Project Settings"对话框,选择“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 been disabled. Execution will stop at the beginning of the program.”
2、“断点错误”:
"One or more breakpoints are not positioned on valid lines.These breakpoints have been moved to the next valid line."
注意:“不能调试”跟“断点错误”不是一回事,“断点错误”会禁用某些错误断点,但“不能调试”则会禁用所有断点。
三、解决方法
1、对于“断点错误”,VC会自动帮我们定位到一行,我们不用理会!
2、对于“不能调试”,解决步骤如下:
1)、重起电脑
2)、把工程拷贝到新目录,删除ncb, .opt,.plg文件。 注意是拷贝,不是剪切。
3)、再菜单栏(menu):Build->Rebuild All。
- VC6.0 不能断点调试的解决方法 VC6.0没有debug模式
- VC6.0 不能断点调试的解决方法 VC6.0没有debug模式
- VC6.0 不能断点调试的解决方法
- VC6.0 不能断点调试的解决方法
- VC6.0 DLL工程DEBUG模式下不能设置断点的几个解决办法
- vc6.0 不能debug 问题
- VC6.0Debug调试总结
- VC6.0Debug调试总结
- vc6.0不能设置断点解决办法
- 关于VC6中突然不能设断点问题的解决方法
- VC6.0开发时工程文件路径中含有“(/)”之类的字符,无法DEBUG断点调试
- VC6.0之Debug调试总结
- VC6.0之Debug调试总结
- VC6 sp6英文版不能debug解决方法
- vc6.0 没有找到mspdb60.dll 的解决方法
- vc6.0 没有找到mspdb60.dll 的解决方法
- VC6中的断点调试
- VC6.0不能添加文件解决方法
- sql查询结果拼接
- 多线程之主线程等待多线程
- Java多态理解
- 将MATLAB矩阵写入TXT
- 栈操作和应用—数制转换
- VC6.0 不能断点调试的解决方法 VC6.0没有debug模式
- react
- 深入理解java虚拟机笔记(第二章:java内存区域)
- HBuilder修改statusbar样式
- Swift如何将数值转换为可拼写的字符串
- 公用表表达式(CTE)
- 一个面试官会问的问题 关于Block的
- MongoDB的特点和适用场景
- 118. Pascal's Triangle