当前位置:网站首页>【解决方案】VC6.0不能断点调试
【解决方案】VC6.0不能断点调试
2022-07-20 22:05:00 【sinat_41752325】
转载自:VC6.0 不能断点调试的解决方法_bin_zh123的博客-CSDN博客
现象是用 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。
————————————————
版权声明:本文为CSDN博主「bin_zh123」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/bin_zh123/article/details/5733459
边栏推荐
- STM32 serial port screen learning
- 调佣金需要去证券公司营业部吗,手机上开户安不安全
- 已知文件名取文件所在目录
- 干货分享丨2022上半年软考高项都考了哪些知识点?
- Industrial application of cartoon 3D virtual image production
- 【FLink】Flink 任务 如何优雅的停止
- Go语言 错误处理
- Code implementation of binary tree node number and leaf node number (C language)
- JZ67 把字符串转换成整数(atoi)
- 第131篇 ERC20 锁仓合约
猜你喜欢
39岁被裁+背房贷(没活路了)
《强化学习周刊》第54期:i-Sim2Real、GriddlyJS & 逆强化学习(IRL)最新应用
STM32 serial port screen learning
初识JVM(一)
Vr virtual reality display of industrial manufacturing plant, real three-dimensional presentation to customers
让我们用ArcGIS制作一张好看的中国月度气温图
30 times performance improvement -- implementation of MyTT index library based on dolphin DB
Tian Wei, architect of Alibaba cloud native application platform: planning, governance and evolution of application architecture
How cloud primitives support enterprise IT governance | Alibaba cloud user group
Code implementation sequence traversal binary tree (C language)
随机推荐
pip&conda 搜索包|查看可安装包版本
The penultimate K nodes in jz22 linked list
按Ctrl键会引发几次按键消息
Part 131 erc20 lock up contract
cannot convert parameter 1 from 'class A' to 'class A'
【FLink】Flink 任务 如何优雅的停止
STM32 serial port screen learning
Substructure of jz26 tree
自签名SAN证书
Code implementation sequence traversal binary tree (C language)
@RequestBody注解转对象中驼峰格式的参数无法接收到数据的问题解决方法
Jz25 merge two sorted linked lists
MoviePy error: FFMPEG encountered the following error while writing file
内网探测1-工作组信息收集&域内信息收集
懒的做核酸、制作(伪造健康码)网页:被拘 5 日
初识JVM(一)
云图说丨数字资产链:您的数字资产产权保护神
measureChildren的理解
[leetcode] use bisection in unordered arrays
Huatai Securities account opening process, is it safe for online customer managers to open accounts